示例#1
0
        public async Task <TvDetailModel> Handle(GetTvDetailsQuery request, CancellationToken cancellationToken)
        {
            var tvDetails = await _theMovieDbService.GetTvDetails(request.TvId);

            var tvDetailModel = await _tvQueryHelper.CreateShowDetailModel(tvDetails);

            return(tvDetailModel);
        }
 private async Task <TvDetails> GetTvDetails(int theMovieDbId)
 {
     return(await _theMovieDbService.GetTvDetails(theMovieDbId));
 }