public Company Update(Company companyChanges) { _context.Entry(companyChanges).State = EntityState.Modified; _context.SaveChanges(); return(companyChanges); }
public Contact Update(Contact contactChanges) { _context.Entry(contactChanges).State = EntityState.Modified; _context.SaveChanges(); return(contactChanges); }