Changeset 4133 for branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/ClientManager.cs
- Timestamp:
- 08/02/10 17:27:24 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.3-HiveMigration/sources/HeuristicLab.Hive/HeuristicLab.Hive.Server.Core/3.3/ClientManager.cs
r4060 r4133 168 168 } 169 169 170 public ResponseObject< List<ClientGroup>> GetAllGroupsOfResource(Guid resourceId) {171 ResponseObject< List<ClientGroup>> response = new ResponseObject<List<ClientGroup>>();170 public ResponseObject<ClientGroupDtoList> GetAllGroupsOfResource(Guid resourceId) { 171 ResponseObject<ClientGroupDtoList> response = new ResponseObject<ClientGroupDtoList>(); 172 172 173 173 ClientDto client = DaoLocator.ClientDao.FindById(resourceId); 174 174 if (client != null) { 175 List<ClientGroup> groupsOfClient = new List<ClientGroup>(DaoLocator.ClientGroupDao.MemberOf(client));175 ClientGroupDtoList groupsOfClient = new ClientGroupDtoList(DaoLocator.ClientGroupDao.MemberOf(client)); 176 176 response.Obj = groupsOfClient; 177 177 response.Success = true; … … 179 179 } 180 180 else { 181 response.Obj = new List<ClientGroup>();181 response.Obj = new ClientGroupDtoList(); 182 182 response.Success = false; 183 183 response.StatusMessage = ApplicationConstants.RESPONSE_CLIENT_RESOURCE_NOT_FOUND; … … 217 217 } 218 218 #endregion 219 219 } 220 220 }
Note: See TracChangeset
for help on using the changeset viewer.