public IActionResult GetFlightById(int id)
 {
     if (id == 0)
     {
         return(BadRequest("Enter valid Id"));
     }
     try
     {
         var flightdetails = repo.GetById(id);
         if (flightdetails != null)
         {
             return(Ok(flightdetails));
         }
         return(BadRequest("No data available!"));
     }
     catch (Exception)
     {
         return(BadRequest("Error in fetching in flight details!"));
     }
 }