Пример #1
0
 private async Task RouteSearch()
 {
     if (SelectedAirline == null)
     {
         RouteSearchResult = new List <RouteInfo>();
     }
     else if (SelectedAirport == null)
     {
         RouteSearchResult = await m_crudManager.GetRoutes(SelectedAirline.IataAirlineCode);
     }
     else
     {
         RouteSearchResult = await m_crudManager.GetRoutes(SelectedAirline.IataAirlineCode, SelectedAirport.IataAirportCode);
     }
 }