Example #1
0
        public IActionResult Post2([FromForm(Name = ("ID"))] int id)
        {
            var carImage = _carImageService.GetByID(id).Data;
            var result   = _carImageService.Delete(carImage);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
        public IActionResult GetByID(int id)
        {
            var result = _carImageService.GetByID(id);

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