public Customer Delete(int customerId) { Customer cust = context.Customers.Find(customerId); if (cust != null) { context.Customers.Remove(cust); context.SaveChanges(); } return(cust); }
Bill IBillRepository.AddBill(Bill bill) { context.Bills.Add(bill); context.SaveChanges(); return(bill); }
public OwnerDebt Add(OwnerDebt owner) { context.OwnerDebts.Add(owner); context.SaveChanges(); return(owner); }
Product IProductRepository.Add(Product product) { context.Products.Add(product); context.SaveChanges(); return(product); }