コード例 #1
0
        public IActionResult Delete([FromForm(Name = ("Id"))] int Id, [FromForm(Name = ("Image"))] IFormFile file)
        {
            var carImage = _carImageService.GetById(Id).Data;

            var result = _carImageService.Delete2(file, carImage);

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