Пример #1
0
 public void Add(Common.Models.Customer customer)
 {
     this.context.Customers.Add(customer);
     this.context.SaveChanges();
 }
Пример #2
0
 public void Update(Common.Models.Customer customer)
 {
     this.context.Update(customer);
     this.context.SaveChanges();
 }
Пример #3
0
 public void Update(Customer customer)
 {
     this.Customers?.Update(customer);
 }