public void Update(Character item) { var character = db.Characters.Find(item.Id); db.Entry(character).CurrentValues.SetValues(item); db.Entry(character).State = EntityState.Modified; db.SaveChanges(); }
public void Update(Weekend item) { var weekend = db.Weekends.Find(item.Id); db.Entry(weekend).CurrentValues.SetValues(item); db.Entry(weekend).State = EntityState.Modified; db.SaveChanges(); }
public void Update(Language item) { var language = db.Languages.Find(item.Id); db.Entry(language).CurrentValues.SetValues(item); db.Entry(language).State = EntityState.Modified; db.SaveChanges(); }
public void Update(Employee item) { var employee = db.Employees.Find(item.Id); db.Entry(employee).CurrentValues.SetValues(item); db.Entry(employee).State = EntityState.Modified; db.SaveChanges(); }