Exemple #1
0
        public async Task <ActionResult <IEnumerable <SeatDTO> > > GetSeats(Guid theMovieRoomID)
        {
            var seats = await movieRoomRepo.GetAllSeats(theMovieRoomID);

            var seatsDTO = mapper.Map <IEnumerable <SeatDTO> >(seats);

            return(Ok(seatsDTO));
        }