Beispiel #1
0
        public IPagedList <RoleGroupDTO> FindBy(string name, int pageNumber, int pageSize)
        {
            var list = _Repository.FindBy(name, pageNumber, pageSize);

            return(new StaticPagedList <RoleGroupDTO>(
                       list.ToList().Select(x => x.ToDto()),
                       pageNumber,
                       pageSize,
                       list.TotalItemCount));
        }