public IActionResult GetImagesById([FromForm(Name = ("CarId"))] int carId) { var result = _carImageService.GetByCarID(carId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IActionResult GetByCarID(int carId) { var result = _carImageService.GetByCarID(carId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }