public Data.Vehicle Update(Data.Vehicle entity) { var oldEntity = _context.Vehicles.Find(entity.Id); _context.Entry(oldEntity).CurrentValues.SetValues(entity); return(entity); }
public Data.Establishment Update(Data.Establishment entity) { var oldEntity = _context.Establishments.Find(entity.Id); _context.Entry(oldEntity).CurrentValues.SetValues(entity); return(entity); }