public ICollection <UserGroupDto> FindGroupsByKeywords(string name, int startIndex, int count) { String[] keywords = name.Split(' '); ICollection <UserGroup> groups = GroupDao.FindByKeywords(keywords, startIndex, count); ICollection <UserGroupDto> groupsDto = new List <UserGroupDto>(); foreach (UserGroup group in groups) { groupsDto.Add(new UserGroupDto(group)); } return(groupsDto); }