public ProductReceiveController() { var dbfactory = new DatabaseFactory(); _ProductReceiveService = new ProductReceiveService(new ProductReceiveRepository(dbfactory), new UnitOfWork(dbfactory)); _ProductReceiveDetailService = new ProductReceiveDetailService(new ProductReceiveDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), new UnitOfWork(dbfactory)); _ProductDetailService = new ProductDetailService(new IssueDetailRepository(dbfactory), new UnitOfWork(dbfactory)); _SlsProductReceiveService = new SlsProductReceiveService(new SlsProductReceiveRepository(dbfactory), new SlsProductReceiveDetailRepository(dbfactory), new ChartOfProductRepository(dbfactory), new UnitOfMeasurementRepository(dbfactory), new UnitOfWork(dbfactory)); }
public HomeController(ISalesInvoiceService salesInvoiceService, IProductService productService, IProductReceiveService productReceiveService, IProductTransferService productTransferService, IBranchService branchService) { _salesInvoiceService = salesInvoiceService; _productService = productService; _productReceiveService = productReceiveService; _productTransferService = productTransferService; _branchService = branchService; }
public ProductReceivesController(IProductReceiveService productReceiveService, IBranchService branchService, IProductService productService) { _productReceiveService = productReceiveService; _branchService = branchService; _productService = productService; MyIdentityDbContext db = new MyIdentityDbContext(); UserStore <MyIdentityUser> userStore = new UserStore <MyIdentityUser>(db); userManager = new UserManager <MyIdentityUser>(userStore); RoleStore <MyIdentityRole> roleStore = new RoleStore <MyIdentityRole>(db); roleManager = new RoleManager <MyIdentityRole>(roleStore); }