// constructor
 public PastSalesOrderController()
 {
     objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
     unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
     orderRepository = orderRepository == null ? unitOfWork.OrderRepository : orderRepository;
     orderLineRepository = orderLineRepository == null ? unitOfWork.OrderLineRepository : orderLineRepository;
 }
        public ProfileController()
        {
            roleManager = HttpContext.Current.GetOwinContext().Get<ApplicationRoleManager>();    
            userManager = HttpContext.Current.GetOwinContext().GetUserManager<ApplicationUserManager>();

            objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
            unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
            aspNetUsersRepository = aspNetUsersRepository == null ? unitOfWork.AspNetUserRepository : aspNetUsersRepository;
        }
        // constructor
        public ProductInfoController()
        {
            objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
            unitOfWorkExt = unitOfWorkExt == null ? objectProvider.UnitOfWorkBcmyExternal : unitOfWorkExt;

            productInfoViewRepository = productInfoViewRepository == null ? unitOfWorkExt.ProductInfoViewRepository : productInfoViewRepository;
            productConditionRepository = productConditionRepository == null ? unitOfWorkExt.ProductConditionRepository : productConditionRepository;
            productBrandRepository = productBrandRepository == null ? unitOfWorkExt.ProductBrandRepository : productBrandRepository;
            productCategoryRepository = productCategoryRepository == null ? unitOfWorkExt.ProductCategoryRepository : productCategoryRepository;
        }
Exemplo n.º 4
0
 // constructor
 public ContactController()
 {
     objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
     unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
     contactRepository = contactRepository == null ? unitOfWork.ContactRepository : contactRepository;
 }
 // constructor
 public NegotiationController()
 {
     objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
     unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
     negotiationRepository = negotiationRepository == null ? unitOfWork.NegotiationRepository : negotiationRepository;
 }
 // constructor
 public ChartController()
 {
     objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
     unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
     currencyRepository = currencyRepository == null ? unitOfWork.CurrencyRepository : currencyRepository;
 }
 // constructor
 public ExchangeRateController()
 {
     objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
     unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
     exchangeRateRepository = exchangeRateRepository == null ? unitOfWork.ExchangeRateRepository : exchangeRateRepository;
 }
 // constructor
 public CustomerSupplierController()
 {
     objectProvider = objectProvider == null ? new ObjectProvider() : objectProvider;
     unitOfWork = unitOfWork == null ? objectProvider.UnitOfWork : unitOfWork;
     customerSupplierRepository = customerSupplierRepository == null ? unitOfWork.CustomerSupplierRepository : customerSupplierRepository;
 }