public void DeleteConfiguringProduct(int id) { var configuringProduct = GetConfiguringProduct(id); if (configuringProduct is null) { throw new ArgumentException ($"ConfiguringProduct with id = {id} doesn't exist"); } if (configuringProduct.MobileTestingProduct != null) { _mobileTestingProductService.DeleteMobileTestingProduct (configuringProduct.MobileTestingProduct.Id); } _configuringProductRepository.DeleteConfiguringProduct(id); }
public void DeleteMobileTestingProduct(int id) { _mobileTestingProductService.DeleteMobileTestingProduct(id); }