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

            var result = list.ToList();

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