public IActionResult Get(int id) { var result = _carImageManager.Get(id); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IActionResult Get(int carId) { var result = _carImageManager.Get(carId); if (result.Success) { return(Ok(result.Data)); } return(BadRequest(result.Message)); }