コード例 #1
0
        public PagedItems GetAllPersons(int page, int pageSize, string urlLink, string person)
        {
            var skip    = pageSize * (page - 1);
            var persons = GetPersons(person, skip, pageSize);

            var personsDto = persons.Select(x => _personFactory.GetModel(x.FirstName, x.LastName, person));

            return(CreatePagedItems(personsDto, urlLink, page, pageSize, persons.Count));
        }