Beispiel #1
0
 public async Task AddCustomerAsync(Customer customer)
 {
     context.Customers.Add(customer);
     await context.SaveChangesAsync();
 }
 public async Task AddSaleAsync(Sale sale)
 {
     sale.SalesDate = DateTime.Now;
     context.Sales.Add(sale);
     await context.SaveChangesAsync();
 }