Ejemplo n.º 1
0
        public async Task <ActionResult <ScreenModel[]> > Get(int showTimeId)
        {
            try
            {
                var screens = await screenRepository.GetAllScreensForShowtimeAsync(showTimeId);

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