Esempio n. 1
0
        public async Task <IReadOnlyCollection <AirplaneSeat> > GetAirplaneSeatsAsync(int airplaneId)
        {
            IReadOnlyCollection <AirplaneSeatEntity> seatsDal =
                await _airplaneRepository.GetAirplaneSeatsAsync(airplaneId);

            IReadOnlyCollection <AirplaneSeat> seats = seatsDal.Select(_mapper.Map <AirplaneSeat>).ToList();

            return(seats);
        }