public IActionResult DeleteByCarId(int carId)
        {
            IResult result = _carImageService.DeleteByCarId(carId);

            if (result.Success)
            {
                return(Ok(result));
            }
            return(BadRequest(result));
        }
示例#2
0
 public IResult Delete(Car car)
 {
     _carDal.Delete(car);
     _carImageService.DeleteByCarId(car.Id);
     return(new SuccessResult());
 }