public IEnumerable <RickViewModel> GetAll() { return(_rickRepository.GetAll().ProjectTo <RickViewModel>(_mapper.ConfigurationProvider)); }
public async Task <PaginationViewModel <GetAllRickViewModel> > Handle(GetAllRickInputModel request, CancellationToken cancellationToken) { return(_mapper.Map <PaginationViewModel <GetAllRickViewModel> >(await _repositoryRick.GetAll(request.pageNumber, request.pageSize))); }