Exemplo n.º 1
0
 public EmployeeInfoManager(ILogger <EmployeeInfoManager> logger,
                            ICompanyInfoRepository companyRepository,
                            IEmployeeInfoRepository employeeRepository)
 {
     Logger             = logger ?? throw new ArgumentNullException(nameof(logger));
     CompanyRepository  = companyRepository ?? throw new ArgumentNullException(nameof(companyRepository));
     EmployeeRepository = employeeRepository ?? throw new ArgumentNullException(nameof(employeeRepository));
 }
 public ContactUsPageController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository
     ) : base(
         new MainModel(),
         currencyRepository,
         companyInfoRepository, categoryRepository, brandRepository)
 {
 }
Exemplo n.º 3
0
 public MainModelFiller(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository
     )
 {
     this.currencyRepository    = currencyRepository;
     this.companyInfoRepository = companyInfoRepository;
     this.categoryRepository    = categoryRepository;
     this.brandRepository       = brandRepository;
 }
Exemplo n.º 4
0
 public ProductPageController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository,
     IProductDetailRepository productDetailRepository) : base(new ProductDetailModel(),
                                                              currencyRepository,
                                                              companyInfoRepository,
                                                              categoryRepository,
                                                              brandRepository)
 {
     this.productDetailRepository = productDetailRepository;
 }
Exemplo n.º 5
0
 public FrontPageBannerPageController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository,
     IFrontPageBannerRepository frontPageBannerRepository) : base(new FrontPageBannerModel(),
                                                                  currencyRepository,
                                                                  companyInfoRepository,
                                                                  categoryRepository,
                                                                  brandRepository)
 {
     this.frontPageBannerRepository = frontPageBannerRepository;
 }
Exemplo n.º 6
0
 public RegisterController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository,
     IUserRepository userRepository) : base(new MainModel(),
                                            currencyRepository,
                                            companyInfoRepository,
                                            categoryRepository,
                                            brandRepository)
 {
     this.userRepository = userRepository;
 }
Exemplo n.º 7
0
 // GET: CategoryPage
 public CategoryPageController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository,
     ISubCategoryRepository subCategoryRepository) : base(new SubCategoryModel(),
                                                          currencyRepository,
                                                          companyInfoRepository,
                                                          categoryRepository,
                                                          brandRepository)
 {
     this.categoryRepository    = categoryRepository;
     this.subCategoryRepository = subCategoryRepository;
 }
Exemplo n.º 8
0
 public InvoicesProvider(
     IInvoicedTasksRepository invoicedTasksRepository,
     IInvoicesRepository invoicesRepository,
     IUsersRepository usersRepository,
     IProjectRateRepository projectRateRepository,
     ICompanyInfoRepository companyInfoRepository,
     IProjectRepository projectRepository,
     ITFSTasksRepository tfsTasksRepository)
 {
     this._invoicedTasksRepository = invoicedTasksRepository;
     this._invoicesRepository      = invoicesRepository;
     this._usersRepository         = usersRepository;
     this._projectRateRepository   = projectRateRepository;
     this._companyInfoRepository   = companyInfoRepository;
     this._projectRepository       = projectRepository;
     this._tfsTasksRepository      = tfsTasksRepository;
 }
Exemplo n.º 9
0
 public CheckoutController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository,
     IShippingTypeRepository shippingTypeRepository,
     IOrderRepository orderRepository,
     IOrderDetailRepository orderDetailRepository,
     ICartRepository cartRepository) : base(new CheckoutModel(),
                                            currencyRepository,
                                            companyInfoRepository,
                                            categoryRepository,
                                            brandRepository)
 {
     this.shippingTypeRepository = shippingTypeRepository;
     this.orderRepository        = orderRepository;
     this.orderDetailRepository  = orderDetailRepository;
     this.cartRepository         = cartRepository;
 }
Exemplo n.º 10
0
        public BaseController(
            IMainModel mainModel,
            ICurrencyRepository currencyRepository,
            ICompanyInfoRepository companyInfoRepository,
            ICategoryRepository categoryRepository,
            IBrandRepository brandRepository
            )
        {
            this.currencyRepository    = currencyRepository;
            this.companyInfoRepository = companyInfoRepository;
            this.categoryRepository    = categoryRepository;

            this.mainModelFiller = new MainModelFiller(currencyRepository,
                                                       companyInfoRepository,
                                                       categoryRepository,
                                                       brandRepository);

            mainModel.FillDatas(mainModelFiller.GetMainModel());
            this.mainModel = mainModel;
        }
Exemplo n.º 11
0
 public CartController(
     ICurrencyRepository currencyRepository,
     ICompanyInfoRepository companyInfoRepository,
     ICategoryRepository categoryRepository,
     IBrandRepository brandRepository,
     ICartRepository cartRepository,
     ICartDetailRepository cartDetailRepository,
     IUserRepository userRepository,
     IProductDetailRepository productDetailRepository,
     IProductRepository productRepository) : base(new CartModel(),
                                                  currencyRepository,
                                                  companyInfoRepository,
                                                  categoryRepository,
                                                  brandRepository)
 {
     this.cartRepository          = cartRepository;
     this.cartDetailRepository    = cartDetailRepository;
     this.userRepository          = userRepository;
     this.productDetailRepository = productDetailRepository;
     this.productRepository       = productRepository;
 }
Exemplo n.º 12
0
 public HomeController(ICurrencyRepository currencyRepository,
                       ICompanyInfoRepository companyInfoRepository,
                       ICategoryRepository categoryRepository,
                       IBrandRepository brandRepository,
                       IFrontPageBannerRepository frontPageBannerRepository,
                       //IImageRepository imageRepository,
                       IFeaturedProductsRepository featuredProductsRepository,
                       IProductRepository productRepository,
                       IOrderRepository orderRepository) : base(
         new HomeModel(),
         currencyRepository,
         companyInfoRepository,
         categoryRepository,
         brandRepository)
 {
     this.currencyRepository        = currencyRepository;
     this.frontPageBannerRepository = frontPageBannerRepository;
     //this.imageRepository = imageRepository;
     this.featuredProductsRepository = featuredProductsRepository;
     this.productRepository          = productRepository;
     this.orderRepository            = orderRepository;
 }
Exemplo n.º 13
0
 public CompanyInfoService(ICompanyInfoRepository _companyInfoRepository, ICompanyInfoValidator _companyInfoValidator)
 {
     _repository = _companyInfoRepository;
     _validator  = _companyInfoValidator;
 }
Exemplo n.º 14
0
 public CompanyInfoController(ICompanyInfoRepository companyInfoRepository,
                              IImageRepository imageRepository)
 {
     this.companyInfoRepository = companyInfoRepository;
     this.imageRepository       = imageRepository;
 }
Exemplo n.º 15
0
 public CompanyInfoService(ICompanyInfoRepository repository)
     : base(repository)
 {
 }
 public CompanyInfoManager(ILogger <CompanyInfoManager> logger, ICompanyInfoRepository repository)
 {
     Logger     = logger ?? throw new ArgumentNullException(nameof(logger));
     Repository = repository ?? throw new ArgumentNullException(nameof(repository));
 }
 public CompanyInfoProvider(ICompanyInfoRepository companyInfoRepository)
 {
     this._companyInfoRepository = companyInfoRepository;
 }