public void PutCustomer(int id, Customer customer) { _context.Entry(customer).State = EntityState.Modified; _context.SaveChanges(); }