public async Task <IActionResult> FilmsAdd(int ID, int status) { var username = User.Identity.Name; var user = await _userManager.FindByNameAsync(username); var profile = await _profileService.GetProfileByUserId(user.Id); var Filmsdto = await _IApiService.GetInfoFilmsAsync(ID); var model = new Filmsdto { FilmsName = Filmsdto.title, FilmsId = Filmsdto.id //Premiere = FilmInfo.release_date, //FilmsName = Filmsdto.FilmsName, //Year = filmsdto.Year, //Scenario = filmsdto.Scenario, //Producer = filmsdto.Producer, //Budget = filmsdto.Budget, //Premiere = filmsdto.Premiere, //Duration = filmsdto.Duration, //Description = filmsdto.Description, //Picture = filmsdto.Picture, //Rating = filmsdto.Rating }; await _filmsService.AddAsync(model, profile, status); return(RedirectToAction("FilmsInfo", "Films", new { id = ID })); }