Example #1
0
        public async Task <GetAllShowsQueryResult> Handle(GetAllShowsQuery request, CancellationToken cancellationToken)
        {
            var shows = await _repository.GetPageAsync(request.Page, request.PageSize);

            var dto = _mapper.Map <List <GetAllShowsQueryResult.Show> >(shows);

            return(new GetAllShowsQueryResult {
                Shows = dto
            });
        }