public async Task Remove(int id) { var order = await syntPolApiDbContext.Orders.FirstOrDefaultAsync(o => o.OrderId == id); order.ShallDisplay = false; await syntPolApiDbContext.SaveChangesAsync(); }
public async Task Remove(int id) { var provider = await syntPolApiDbContext.Providers.FirstOrDefaultAsync(pr => pr.ProviderId == id); provider.ShallDisplay = false; await syntPolApiDbContext.SaveChangesAsync(); }
public async Task Remove(int id) { var category = await syntPolApiDbContext.Categories.FirstOrDefaultAsync(cat => cat.CategoryId == id); category.ShallDisplay = false; await syntPolApiDbContext.SaveChangesAsync(); }
public async Task Remove(int id) { var invoice = await syntPolApiDbContext.Invoices.FirstOrDefaultAsync(i => i.InvoiceId == id); invoice.ShallDisplay = false; await syntPolApiDbContext.SaveChangesAsync(); }
public async Task Remove(int id) { var invoiceEdi = await syntPolApiDbContext.InvoicesEdi.FirstOrDefaultAsync(ie => ie.InvoiceEdiId == id); syntPolApiDbContext.InvoicesEdi.Remove(invoiceEdi); await syntPolApiDbContext.SaveChangesAsync(); }