Exemple #1
0
        public async Task <ActionResult <CinemaDomainModel> > GetAsync(int id)
        {
            CinemaDomainModel cinema;

            cinema = await _cinemaService.GetCinemaByIdAsync(id);

            if (cinema == null)
            {
                return(NotFound(Messages.CINEMA_DOES_NOT_EXIST));
            }

            return(Ok(cinema));
        }
        public async Task <ActionResult <CinemaDomainModel> > GetAsync(int id)
        {
            CinemaDomainModel movie;

            movie = await _cinemaService.GetCinemaByIdAsync(id);

            if (movie == null)
            {
                return(NotFound(Messages.CINEMA_CREATION_ERROR));
            }

            return(Ok(movie));
        }