public IActionResult DeleteByCarId(int carId) { IResult result = _carImageService.DeleteByCarId(carId); if (result.Success) { return(Ok(result)); } return(BadRequest(result)); }
public IResult Delete(Car car) { _carDal.Delete(car); _carImageService.DeleteByCarId(car.Id); return(new SuccessResult()); }