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