Beispiel #1
0
        public async Task <ItemsPage <Airplane> > SearchAirplanesAsync(AirplaneFilter filter)
        {
            AirplaneFilterEntity filterDal = _mapper.Map <AirplaneFilterEntity>(filter);

            ItemsPageEntity <AirplaneEntity> airplanesDal =
                await _airplaneRepository.SearchAirplanesAsync(filterDal);

            ItemsPage <Airplane> airplanes = _mapper.Map <ItemsPage <Airplane> >(airplanesDal);

            return(airplanes);
        }