public IActionResult GetAllVehicles() { try { var vehicles = _vehicleLogic.GetAllVehicles(); if (vehicles.Count == 0) { return(NoContent()); } return(Ok(vehicles)); } catch (Exception e) { return(StatusCode(500, e)); } }