示例#1
0
        public IActionResult GetImagesById([FromForm(Name = ("CarId"))] int carId)
        {
            var result = _carImageService.GetByCarID(carId);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
示例#2
0
        public IActionResult GetByCarID(int carId)
        {
            var result = _carImageService.GetByCarID(carId);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }