public IActionResult AddAsync([FromForm] IFormFile[] files, [FromForm] CarImage carImage)
        {
            var res = _carImageService.AddCollective(files, carImage);

            if (res.Success)
            {
                return(Ok(res));
            }
            return(BadRequest(res));
        }
Exemplo n.º 2
0
        public IActionResult Add([FromForm] IFormFile[] files, [FromForm] CarImage carImage)
        {
            var result = _imageService.AddCollective(files, carImage);

            if (result.SuccessStatus)
            {
                return(Ok(result));
            }

            return(BadRequest(result));
        }