public void Add(Common.Models.Customer customer) { this.context.Customers.Add(customer); this.context.SaveChanges(); }
public void Update(Common.Models.Customer customer) { this.context.Update(customer); this.context.SaveChanges(); }
public void Update(Customer customer) { this.Customers?.Update(customer); }