public void CreateGroup(OperationGroup group) { if(group != null) { db.OperationGroup.Add(group); db.SaveChanges(); } }
public void EditGroup(OperationGroup group) { db.Entry(group).State = System.Data.Entity.EntityState.Modified; db.SaveChanges(); }