public async Task <IActionResult> Update(string id)
        {
            var tvShowDetailsModel = await tvShowService.GetTVShowAndDetailsByIdAsync(id);

            var tvShowInputModel = mapper.Map <TVShowDetailsViewModel, UpdateTVShowInputModel>(tvShowDetailsModel);

            return(View(tvShowInputModel));
        }
Exemplo n.º 2
0
        public async Task <IActionResult> Details(string id)
        {
            var tvShowDetailsViewModel = await tvShowService.GetTVShowAndDetailsByIdAsync(id);

            return(View(tvShowDetailsViewModel));
        }