Exemplo n.º 1
0
        public EntityData <User> GetUsersOfGroup(int groupId, List <SortCollection> sorted, int?skip, int?take, string searchKey = "", List <FilterCollection> filterCollection = null)
        {
            int?skipValue = String.IsNullOrWhiteSpace(skip.ToString()) ? (int?)null : skip.Value;
            var takeValue = String.IsNullOrWhiteSpace(skip.ToString()) ? (int?)null : take.Value;
            int usersCount;
            var userList = _groupManagement.GetAllUsersOfGroup(groupId, sorted, skipValue, takeValue, searchKey, filterCollection, out usersCount);

            return(new EntityData <User>
            {
                result = userList,
                count = usersCount
            });
        }