Пример #1
0
 public void Update(Customer customer)
 {
     context.Entry(customer).State = EntityState.Modified;
 }
Пример #2
0
 public void Insert(Customer customer)
 {
     context.Customers.Add(customer);
 }