Exemplo n.º 1
0
        public IActionResult Airline()
        {
            var airlines = _airlineService.GetAllAirlines();

            return(View(airlines));
        }
Exemplo n.º 2
0
 public async Task <IActionResult> GetAllAirlines()
 {
     return(Ok(await _airlineService.GetAllAirlines()));
 }