예제 #1
0
        public async Task <IActionResult> Del(int cinemaId)
        {
            IEnumerable <Movie> movies = await _movieService.GetByCinemaAsync(cinemaId);

            await _movieService.DelMovies(movies);

            await _cinemaService.DelAsync(cinemaId);

            return(RedirectToAction("Index", "Home"));
        }