Ejemplo n.º 1
0
        public PaginatedResults <PersonDto> GetPeopleByName(string name, PaginationOptions options)
        {
            DelayService.Pause();

            var people = _peopleRepository.GetByName(name);

            return(_paginationService.GetPaginatedResults <Person, PersonDto>(people, options));
        }
Ejemplo n.º 2
0
 public PaginatedResults <OccupationDto> GetByName(string name, PaginationOptions options)
 {
     return(_paginationService.GetPaginatedResults <Occupation, OccupationDto>(_occupationsRepository.FindOccupationByName(name), options));
 }
 public PaginatedResults <InterestDto> GetByName(string name, PaginationOptions options)
 {
     return(_paginationService.GetPaginatedResults <Interest, InterestDto>(_interestsRepository.GetByName(name), options));
 }