public ProductUnitsController() { var dbfactory = new DatabaseFactory(); _ProductUnitService = new ProductUnitService(new ProductUnitRepository(dbfactory), new UnitOfWork(dbfactory)); _unitOfMeasurementService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory)); _ProductPriceService = new ProductPriceService(new ProductPriceRepository(dbfactory), new UnitOfWork(dbfactory)); }
public ProductUnitForm() { InitializeComponent(); IKernel kernel = BootStrapper.Initialize(); _productUnitService = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService; _productUnit = new ProductUnitModel(); }
public ProductStoreForm() { InitializeComponent(); IKernel kernel = BootStrapper.Initialize(); _productStoreService = kernel.GetService(typeof(ProductStoreService)) as ProductStoreService; _purchaseReceiveService = kernel.GetService(typeof(PurchaseReceiveService)) as PurchaseReceiveService; _purchaseReceiveDetailService = kernel.GetService(typeof(PurchaseReceiveDetailService)) as PurchaseReceiveDetailService; _productUnitService = kernel.GetService(typeof(ProductUnitService)) as ProductUnitService; _productSectionService = kernel.GetService(typeof(ProductSectionService)) as ProductSectionService; _productStore = new ProductStoreModel(); }
public ProductUnitController(IProductUnitService productUnitService, IUserService userService) : base(userService) { _productUnitService = productUnitService; }
public EditModel(IProductUnitService service) { this._service = service; }
public IndexModel(IProductUnitService service) { this._service = service; }
public ProductUnitsController(IProductUnitService productUnitService) { _productUnitService = productUnitService; }
public ProductUnitBusiness(IProductUnitService _svcProductUnit, IMapper _iMapper) { svcProductUnit = _svcProductUnit; iMapper = _iMapper; }