public ProductPricingTierController(IProductPricingTierViewModelBuilder productPricingTierViewModelBuilder,IAuditLogViewModelBuilder auditLogViewModelBuilder, IProductPricingViewModelBuilder productPricingViewModelBuilder) { _productPricingTierViewModelBuilder = productPricingTierViewModelBuilder; _productPricingViewModelBuilder = productPricingViewModelBuilder; _auditLogViewModelBuilder = auditLogViewModelBuilder; }
public ProductPricingController(IProductRepository productRepository,IProductPricingViewModelBuilder productPricingViewModelBuilder, IEditProductPricingViewModelBuilder editProductPricingViewModelBuilder, IAddPricingLineItemsViewModelBuilder addPricingLineItemViewModelBuilder,IAuditLogViewModelBuilder auditLogViewModelBuilder, ISettingsRepository settingsRepository) { _ppViewModelBuilder = productPricingViewModelBuilder; _addPricingLineItemViewModelBuilder = addPricingLineItemViewModelBuilder; _editProductPricingViewModelBuilder = editProductPricingViewModelBuilder; _auditLogViewModelBuilder=auditLogViewModelBuilder; _settingsRepository = settingsRepository; ViewBag.productList = _ppViewModelBuilder.ProductList(); ViewBag.tierList = _ppViewModelBuilder.TierList(); _productRepository = productRepository; }