Пример #1
0
        public async Task <IActionResult> ListByFlightNumber(string number)
        {
            List <Flight> flights = await _flights.GetFlightsByNumberAsync(number);

            return(PartialView("List", flights));
        }
Пример #2
0
 /// <summary>
 /// Return flights with the specified number
 /// </summary>
 /// <param name="number"></param>
 /// <returns></returns>
 public async Task <List <Flight> > GetFlightsAsync(string number)
 => await _flights.GetFlightsByNumberAsync(number);