예제 #1
0
        public IActionResult DeleteHall(int cinemaId, int hallId)
        {
            if (!_сinemaService.CheckCinemaExists(cinemaId))
            {
                return(NotFound(new Response(ErrorOfCinemaNonexistence)));
            }

            if (!_сinemaService.CheckHallExists(cinemaId, hallId))
            {
                return(NotFound(new Response(ErrorOfHallNonexistence)));
            }

            _сinemaService.DeleteHall(hallId);

            return(Ok(new Response()));
        }