public void Edit(Group group) { db.Entry(group).State = EntityState.Modified; db.SaveChanges(); }
public void Add(Group group) { db.Groups.Add(group); db.SaveChanges(); }