Beispiel #1
0
        public IActionResult GetCitiesForCinema(int cityId)
        {
            var cinemaList = cinemaRepository.GetCitiesForCinema(cityId);

            if (cinemaList == null)
            {
                return(NotFound());
            }

            var objDto = new List <CinemaDto>();

            foreach (var item in cinemaList)
            {
                objDto.Add(mapper.Map <CinemaDto>(item));
            }

            return(Ok(objDto));
        }