Beispiel #1
0
 public bool DeleteGroup(int groupId)
 {
     int result = new DR_Group().Delete(groupId);
     if (result == 0)
         return false;
     return true;
 }
Beispiel #2
0
 public bool AddUpdate(string groupName, int groupId)
 {
     if (groupId <= 0) {
         int result = new DR_Group().Add(groupName);
         if (result == 0)
             return false;
         return true;
     } else {
         int result = new DR_Group().Update(groupId, groupName);
         if (result == 0)
             return false;
         return true;
     }
 }