public async Task <IActionResult> Delete(int id) { try { var success = await _vehiclesService.DeleteAsync(id); if (!success) { return(NotFound()); } return(Ok()); } catch (Exception ex) { return(NotFound(ex)); } }