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