public async Task <IActionResult> FilmsInfo(int ID) { var status = false; var username = User.Identity.Name; if (username != null) { var user = await _userManager.FindByNameAsync(username); var profile = await _profileService.GetProfileByUserId(user.Id); status = await _filmsService.CheckAddFilm(ID, profile); } var FilmInfo = await _IApiService.GetInfoFilmsAsync(ID); var pic = "https://image.tmdb.org/t/p/w500" + FilmInfo.poster_path; if (FilmInfo.poster_path == null) { pic = "/img/noposter.jpg"; } var FilmInfoModel = new FilmsViewModel { FilmsName = FilmInfo.title, Duration = FilmInfo.overview, //Premiere = FilmInfo.release_date, Budget = FilmInfo.budget, Picture = pic, Id = ID, Button = status }; return(View(FilmInfoModel)); }