public Customer UpdateCustomer(Customer customer) { context.Attach(customer).State = EntityState.Modified; context.SaveChanges(); return(customer); }