예제 #1
0
        public async Task <ActionResult <ScreenModel> > Get(int movieId, int showTimeId)
        {
            try
            {
                var screen = await screenRepository.GetScreenForMovieAtShowtimeAsync(movieId, showTimeId);

                return(mapper.Map <ScreenModel>(screen));
            }
            catch (Exception)
            {
                return(this.StatusCode(StatusCodes.Status500InternalServerError));
            }
        }