public IActionResult GetSingleCar(string carId) { try { return(Ok(carsLogic.GetSingleCar(carId))); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }
public IActionResult GetSingleCar(string carId) { try { return(Ok(carsLogic.GetSingleCar(carId))); } catch (Exception ex) { return(StatusCode(StatusCodes.Status500InternalServerError, ex.Message)); } }