Example #1
0
        public async Task <IActionResult> Create(MovieViewModel item)
        {
            await Task.CompletedTask;
            var movieAdded = await _movieDomainService.AddAsync(item);

#pragma warning disable CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            Task.Run(async() =>
            {
                _movieDomainService.AddCredits(item, movieAdded);
            });
#pragma warning restore CS4014 // Because this call is not awaited, execution of the current method continues before the call is completed
            return(RedirectToAction("Index"));
        }