public async Task <IActionResult> List() { var collection = await _airlineService.GetAll(); return(Ok(new AirlineListResponse() { Data = Mapper.ConvertEntityToSchema <AirlineSchema>(collection) .OrderBy(x => x.Callsign) })); }
public async Task <IEnumerable <AirlineViewModel> > Get() { return((await _airlineService.GetAll()).Select(ur => ur.ToViewModel())); }