Example #1
0
 public void UpdateCustomer(Customer customer)
 {
     using (var context = new OrderSystemContext()) {
         context.Entry(customer).State = EntityState.Modified;
         context.SaveChanges();
     }
 }
Example #2
0
 public void UpdateCustomer(Customer customer)
 {
     _context.Entry(customer).State = EntityState.Modified;
     _context.SaveChanges();
 }