public void Delete(int id) { try { departureService.DeleteDeparture(id); } catch (System.Exception) { HttpContext.Response.StatusCode = 404; } }