示例#1
0
        public async Task <IReadOnlyCollection <AirplaneSeatType> > GetAirplaneSeatTypesAsync(int airplaneId)
        {
            IReadOnlyCollection <AirplaneSeatTypeEntity> seatTypesDal =
                await _airplaneRepository.GetAirplaneSeatTypesAsync(airplaneId);

            IReadOnlyCollection <AirplaneSeatType> seatTypes =
                seatTypesDal.Select(_mapper.Map <AirplaneSeatType>).ToList();

            return(seatTypes);
        }