public CustomerPriceController(IMCustomerPriceRepository mCustomerPriceRepository, IMItemRepository mItemRepository) { Check.Require(mCustomerPriceRepository != null, "mCustomerPriceRepository may not be null"); Check.Require(mItemRepository != null, "mItemRepository may not be null"); this._mCustomerPriceRepository = mCustomerPriceRepository; this._mitemRepository = mItemRepository; }
public ItemController(IMItemRepository mItemRepository, IMItemCatRepository mItemCatRepository, IMBrandRepository mBrandRepository, IMCustomerPriceRepository mCustomerPriceRepository) { Check.Require(mItemRepository != null, "mItemRepository may not be null"); Check.Require(mItemCatRepository != null, "mItemCatRepository may not be null"); Check.Require(mBrandRepository != null, "mBrandRepository may not be null"); Check.Require(mCustomerPriceRepository != null, "mCustomerPriceRepository may not be null"); this._mItemRepository = mItemRepository; this._mItemCatRepository = mItemCatRepository; this._mBrandRepository = mBrandRepository; this._mCustomerPriceRepository = mCustomerPriceRepository; }