public async Task <ResponseMessageResult <PagedList <VacancyGeneralInfoViewModel> > > GetAllVacanciesAsync(int page, int pageSize) { var response = new ResponseMessageResult <PagedList <VacancyGeneralInfoViewModel> >(); var vacancies = await _vacancyRepository.GetAllVacanciesAsync(); response.Content = _mapper.Map <List <VacancyGeneralInfoViewModel> >(vacancies).ToPagedList(page, pageSize); return(response); }