public SalesController()
 {
     var dbfactory = new DatabaseFactory();
     var unitOfWork = new UnitOfWork(dbfactory);
     _salesOrderService = new SalesOrderService(new SalesOrderRepository(dbfactory),
         new SalesOrderDetailRepository(dbfactory),
         new SalesOrderApprovalRepository(dbfactory),
         new NotificationRepository(dbfactory),
         new NotificationDetailRepository(dbfactory),
         unitOfWork);
     _approvalController = new ApprovalController<SlsSalesOrderApproval, SlsSalesOrderViewModel>(_salesOrderService);
     _deliveryService = new DeliveryService(new DeliveryRepository(dbfactory), new DeliveryDetailRepository(dbfactory), unitOfWork);
     _SecCompanyService = new SecCompanyService(new SecCompanyRepository(dbfactory), unitOfWork);
     _hrmEmployeeService = new HrmEmployeeService(new HrmEmployeeRepository(dbfactory), unitOfWork);
     _officeService = new OfficeService(new OfficeRepository(dbfactory), unitOfWork);
     _DistributorService = new DistributorService(new DistributorRepository(dbfactory), unitOfWork);
     _DealerService = new DealerService(new DealerRepository(dbfactory), unitOfWork);
     _CorporateClientService = new CorporateClientService(new CorporateClientRepository(dbfactory), unitOfWork);
     _RetailerService = new RetailerService(new RetailerRepository(dbfactory), unitOfWork);
     _FreeProductService = new FreeProductService(new FreeProductRepository(dbfactory), new ChartOfProductRepository(dbfactory),
         new UnitOfMeasurementRepository(dbfactory), unitOfWork);
     _ProductService = new ChartOfProductService(new ChartOfProductRepository(dbfactory), unitOfWork);
     _UnitService = new UnitOfMeasurementService(new UnitOfMeasurementRepository(dbfactory), unitOfWork);
     _salesDiscountSettingService = new SalesDiscountSettingService(new SalesDiscountSettingRepository(dbfactory), unitOfWork);
     _PartyCreditService = new PartyCreditReportService(new InvStoreOpeningRepository(dbfactory), unitOfWork);
     _promotionalOfferService = new PromotionalOfferService(new PromotionalOfferRepository(dbfactory),
         new PromotionalOfferDetailRepository(dbfactory),
         new UnitOfWork(dbfactory));
 }
Exemple #2
0
 public PurchasesController(IPurchaseService purchaseService, IMapper mapper, IRetailerService retailerService, ILogger <PurchasesController> logger)
 {
     _mapper          = mapper;
     _purchaseService = purchaseService;
     _retailerService = retailerService;
     _logger          = logger;
 }
Exemple #3
0
 public OrderBasketService(IOrderBasketRepository orderBasketRepository, IDatabaseConfigAdapter databaseConfigAdapter, ISupplierService supplierService, IRetailerService retailerService, ILogger logger)
 {
     this.orderBasketRepository = orderBasketRepository;
     this.databaseConfigAdapter = databaseConfigAdapter;
     this.supplierService       = supplierService;
     this.retailerService       = retailerService;
     this.logger = logger;
 }
 //
 // GET: /Sales/RouteSetup/
 public RouteSetupController()
 {
     var dbfactory = new DatabaseFactory();
     var unitOfWork = new UnitOfWork(dbfactory);
     _service = new RouteSetupService(new RouteSetupRepository(dbfactory),
         new RouteSetupDetailRepository(dbfactory), new UnitOfWork(dbfactory));
     _routePlanService = new RoutePlanService(new RoutePlanRepository(dbfactory), new RoutePlanDetailRepository(dbfactory),
         new RoutePlanApprovalRepository(dbfactory), new NotificationRepository(dbfactory),
         new NotificationDetailRepository(dbfactory), new UnitOfWork(dbfactory));
     _approvalController = new ApprovalController<SlsRoutePlanApproval, SlsRoutePlan>(_routePlanService);
     _distributorservice = new DistributorService(new DistributorRepository(dbfactory), unitOfWork);
     _retailerservice = new RetailerService(new RetailerRepository(dbfactory), unitOfWork);
     _delearservice = new DealerService(new DealerRepository(dbfactory), unitOfWork);
     _corporateclientservice = new CorporateClientService(new CorporateClientRepository(dbfactory), unitOfWork);
 }
Exemple #5
0
 public WCFRetailChainService()
 {
     this.retailerSvc = new XmlRetailerService();
 }
 public RetailerController(IRetailerService retailerService)
 {
     _retailerService = retailerService;
 }
 public RetailerApiController(IRetailerService retailerService, ITenantService tenantService)
     : base(tenantService)
 {
     _retailerService = retailerService;
 }
Exemple #8
0
 public RetailersController(IRetailerService retailerService, IMapper mapper, ILogger <RetailersController> logger)
 {
     _mapper          = mapper;
     _retailerService = retailerService;
     _logger          = logger;
 }
 public RetailerController()
 {
     var dbfactory = new DatabaseFactory();
     _retailerService = new RetailerService(new RetailerRepository(dbfactory), new UnitOfWork(dbfactory));
 }
Exemple #10
0
 public WhereToBuyController(IPageContentService pageContentService, IProductsService productsService, IRetailerService retailerService)
     : base(pageContentService, productsService)
 {
     this.retailerService = retailerService;
 }
Exemple #11
0
 public RetailerApiController(IRetailerService retailerService, ITenantService tenantService) : base(tenantService)
 {
     _retailerService = retailerService;
 }