コード例 #1
0
        public async Task Remove(int id)
        {
            var order = await syntPolApiDbContext.Orders.FirstOrDefaultAsync(o => o.OrderId == id);

            order.ShallDisplay = false;
            await syntPolApiDbContext.SaveChangesAsync();
        }
コード例 #2
0
        public async Task Remove(int id)
        {
            var provider = await syntPolApiDbContext.Providers.FirstOrDefaultAsync(pr => pr.ProviderId == id);

            provider.ShallDisplay = false;
            await syntPolApiDbContext.SaveChangesAsync();
        }
コード例 #3
0
        public async Task Remove(int id)
        {
            var category = await syntPolApiDbContext.Categories.FirstOrDefaultAsync(cat => cat.CategoryId == id);

            category.ShallDisplay = false;
            await syntPolApiDbContext.SaveChangesAsync();
        }
コード例 #4
0
        public async Task Remove(int id)
        {
            var invoice = await syntPolApiDbContext.Invoices.FirstOrDefaultAsync(i => i.InvoiceId == id);

            invoice.ShallDisplay = false;
            await syntPolApiDbContext.SaveChangesAsync();
        }
コード例 #5
0
        public async Task Remove(int id)
        {
            var invoiceEdi = await syntPolApiDbContext.InvoicesEdi.FirstOrDefaultAsync(ie => ie.InvoiceEdiId == id);

            syntPolApiDbContext.InvoicesEdi.Remove(invoiceEdi);
            await syntPolApiDbContext.SaveChangesAsync();
        }