示例#1
0
 public IActionResult GetMonthlyFlights(string id)
 {
     if (id == "airtime")
     {
         var result = _trackerService.GetMeanAirtime();
         return(Ok(result));
     }
     else if (id == "delay")
     {
         var result = _trackerService.GetMeanDelay();
         return(Ok(result));
     }
     else
     {
         return(NoContent());
     }
 }