public IActionResult Delete(int id)
 {
     //_log4net.Info(" Http DeleteFlight request Initiated");
     if (id == 0)
     {
         return(BadRequest());
     }
     try
     {
         int res = repo.DeleteFlight(id);
         if (res == 1)
         {
             return(Ok());
         }
         return(BadRequest());
     }
     catch (Exception)
     {
         return(BadRequest());
     }
 }