public IActionResult Delete(int id)
 {
     try
     {
         airport.DeleteDeparture(id);
         return(Ok());
     }
     catch (System.Exception ex)
     {
         return(BadRequest(ex.Message));
     }
 }
Beispiel #2
0
        public async Task <IActionResult> Delete(int id)
        {
            try
            {
                var result = await airport.DeleteDeparture(id);

                return(Ok(result));
            }
            catch (System.Exception ex)
            {
                return(BadRequest(ex.Message));
            }
        }