This commit is contained in:
mmrbnjd
2024-05-25 21:30:11 +03:30
parent e4cd267beb
commit 9df826b99e
6 changed files with 97 additions and 32 deletions

View File

@@ -19,6 +19,10 @@ namespace Back.Services
{
return await _invoiceitemRepo.UpdateAsync(item);
}
public async Task<bool> Delete(InvoiceItem item)
{
return await _invoiceitemRepo.DeleteAsync(item);
}
public async Task<bool> Exist(int companyID,int invoiceID,int invoiceitemID)
{
return await _invoiceitemRepo.Get(w => w.InvoiceID == invoiceID && w.ID == invoiceitemID && w.invoice.CompanyID == companyID).AnyAsync();