public bool DeleteGroup(int groupId) { int result = new DR_Group().Delete(groupId); if (result == 0) return false; return true; }
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; } }