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

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

            var hall = _сinemaService.GetHall(hallId);

            return(Ok(new GetResponse <HallFullView>(hall)));
        }