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

            var cinema = _сinemaService.GetCinema(cinemaId);

            return(Ok(new GetResponse <CinemaView>(cinema)));
        }