Exemplo n.º 1
0
 public ProductController(IProductService productService, ICategoryService categoryService, IProductImageService productImageService, IMapper mapper)
 {
     _productService      = productService;
     _categoryService     = categoryService;
     _productImageService = productImageService;
     _mapper = mapper;
 }
Exemplo n.º 2
0
 //public UiDataService() { }
 public UiDataService(
     ILanguageService languageService,
     ISliderService sliderService,
     IMenuService menuService,
     ICategoryService categoryService,
     IProductImageService productImageService,
     IProductService productService,
     IContactService contactService,
     IContactInformationService contactInformationService,
     IProjectService projectService,
     IServiceService serviceService,
     IGlobalTextDataService globalTextDataService)
 {
     this.languageService           = languageService;
     this.sliderService             = sliderService;
     this.menuService               = menuService;
     this.categoryService           = categoryService;
     this.productImageService       = productImageService;
     this.productService            = productService;
     this.contactService            = contactService;
     this.contactInformationService = contactInformationService;
     this.projectService            = projectService;
     this.serviceService            = serviceService;
     this.globalTextDataService     = globalTextDataService;
 }
Exemplo n.º 3
0
 public ProductController(IProductCategoryService productCategoryService, IProductService productService, ICommonService commonService, IProductImageService productImageService)
 {
     this._productCategoryService = productCategoryService;
     this._productService         = productService;
     this._commonService          = commonService;
     this._productImageService    = productImageService;
 }
Exemplo n.º 4
0
 public ProVarationController(IProductService productService, IProductVariationService productVariationService,
                              IProductImageService productImageService)
 {
     _productService          = productService;
     _productVariationService = productVariationService;
     _productImageService     = productImageService;
 }
 public ProductController(IProductService productService, ICategoryService categoryService, IProductImageService productImageService, IHostingEnvironment env)
 {
     _productService      = productService;
     _categoryService     = categoryService;
     _productImageService = productImageService;
     _env = env;
 }
 public ProductController(IProductService repo, IMapper mapper, ICategoryService repoCategory, IProductImageService imageService)
 {
     _repo         = repo;
     _repoCategory = repoCategory;
     _mapper       = mapper;
     _imageService = imageService;
 }
Exemplo n.º 7
0
 public ProductService(IRepository <Product> productRepo, ApplicationDbContext context,
                       IProductImageService productImageService)
 {
     this.productRepo         = productRepo;
     this.context             = context;
     this.productImageService = productImageService;
 }
Exemplo n.º 8
0
 public ProductImageController(
     IProductImageService productImageService,
     IProductImageComplexService productImageComplexService)
 {
     this._ProductImageService        = productImageService;
     this._ProductImageComplexService = productImageComplexService;
 }
Exemplo n.º 9
0
 public ProductService(ApplicationDbContext context, IMapper mapper, IProductImageService productImageService, ICategoryService categoryService)
     : base(context)
 {
     this.mapper = mapper;
     this.productImageService = productImageService;
     this.categoryService     = categoryService;
 }
 public ProductController(IProductSevice productService,
                          IProductDetailService productDetailService,
                          IProductSizeService productSizeService,
                          IProductImageService productImageService,
                          IColorService colorService,
                          IRateService rateService,
                          IReviewService reviewService,
                          IUserService userService,
                          IOrderService orderService,
                          IOrderDetailService orderDetailService,
                          ICategoryService categoryService, IMapper mapper)
 {
     _productService       = productService;
     _categoryService      = categoryService;
     _productDetailService = productDetailService;
     _productSizeService   = productSizeService;
     _productImageService  = productImageService;
     _colorService         = colorService;
     _rateService          = rateService;
     _reviewService        = reviewService;
     _userService          = userService;
     _orderService         = orderService;
     _orderDetailService   = orderDetailService;
     _mapper = mapper;
 }
Exemplo n.º 11
0
 public FileUploaderController(
     IConfiguration configuration,
     IProductImageService productImageService)
 {
     _configuration       = configuration;
     _productImageService = productImageService;
 }
Exemplo n.º 12
0
 public ProductController(IProductService productService, IWebHostEnvironment webHostEnvironment, IBrandService brandService, ICategoryService categoryService, IProductImageService productImageService)
 {
     _productService      = productService;
     _brandService        = brandService;
     _categoryService     = categoryService;
     _productImageService = productImageService;
     _webHostEnvironment  = webHostEnvironment;
 }
Exemplo n.º 13
0
 public ProductController(IProductService productService, IProductCategoryService productCategoryService, IProductImageService productImageService,
                          ITagService tagService)
 {
     this._productService         = productService;
     this._productCategoryService = productCategoryService;
     this._productImageService    = productImageService;
     this._tagService             = tagService;
 }
Exemplo n.º 14
0
 public ProductController(IProductService productService, IProductImageService productImageService, IHostingEnvironment env,
                          IAuthorizationService authorizationService)
 {
     _productService      = productService;
     _productImageService = productImageService;
     _env = env;
     _authorizationService = authorizationService;
 }
Exemplo n.º 15
0
 public ProductsController(IProductService productService,
                           IProductImageService productImageService,
                           IErrorService errorService,
                           IUnitOfWork unitOfWork) : base(errorService, unitOfWork)
 {
     _productService      = productService;
     _productImageService = productImageService;
 }
 public CartService(ApplicationDbContext context, IMapper mapper, IUserService userService, IProductService productService, IProductImageService productImageService)
     : base(context)
 {
     this.mapper              = mapper;
     this.userService         = userService;
     this.productService      = productService;
     this.productImageService = productImageService;
 }
Exemplo n.º 17
0
 public ProductsController(IProductService productService,
                           IProductImageService productImageService,
                           IProductCategoryService categoryService)
 {
     _productService      = productService;
     _productImageService = productImageService;
     _categoryService     = categoryService;
 }
Exemplo n.º 18
0
 public ProductDetailController(ICategoryService categoryService, IProductService productService
                                , IManufacturerService manufacturerService, IProductSizeService productSizeService, IProductImageService productImageService)
 {
     _categoryService     = categoryService;
     _productService      = productService;
     _manufacturerService = manufacturerService;
     _productSizeService  = productSizeService;
     _productImageService = productImageService;
 }
 public ProductDetailController(IProductService productService, IConfiguration config, IProductImageService productImageService,
                                IProductQuantityService productQuantityService, IWholePriceService wholePriceService)
 {
     _productService         = productService;
     _config                 = config;
     _productImageService    = productImageService;
     _productQuantityService = productQuantityService;
     _wholePriceService      = wholePriceService;
 }
Exemplo n.º 20
0
 public HomeController(IProductService productService,
                       ICategoryService categoryService, ICartService cartService,
                       IProductImageService productImageService)
 {
     _productService      = productService;
     _categoryService     = categoryService;
     _cartService         = cartService;
     _productImageService = productImageService;
 }
Exemplo n.º 21
0
 public ProductController(IUnitOfWork unitOfWork, IProductService productService,
                          IAttributeService attributeService, ICategoryService categoryService, IProductImageService productImageService, IValueService valueService)
 {
     _unitOfWork          = unitOfWork;
     _productService      = productService;
     _categoryService     = categoryService;
     _attributeService    = attributeService;
     _productImageService = productImageService;
     _valueService        = valueService;
 }
Exemplo n.º 22
0
 public ProductController(ApplicationDbContext context, ICategoryService categoryService, IHtmlHelper htmlHelper,
                          IProductService productService, IProductImageService productImageService, IAdminService adminService)
 {
     _context                 = context;
     this.categoryService     = categoryService;
     this.htmlHelper          = htmlHelper;
     this.productService      = productService;
     this.productImageService = productImageService;
     this.adminService        = adminService;
 }
Exemplo n.º 23
0
 public HomeController(IBannerService bannerService, IProductAdvertisement productAdvertisement,
                       IProductVariationService productVariationService, IProductService productService,
                       IProductImageService productImageService)
 {
     _bannerService           = bannerService;
     _productAdvertisement    = productAdvertisement;
     _productVariationService = productVariationService;
     _productService          = productService;
     _productImageService     = productImageService;
 }
 public ProductController(IProductService productService, IBrandService brandService, ICategoryService categoryService,
                          IVendorService vendorService, IProductVariationService productVariationService, IProductImageService productImageService)
 {
     _productService          = productService;
     _brandService            = brandService;
     _vendorService           = vendorService;
     _productVariationService = productVariationService;
     _productImageService     = productImageService;
     _categoryService         = categoryService;
 }
        public Seeder(IServiceProvider serviceProvider, IConfiguration configuration)
        {
            var connectionString = configuration.GetConnectionString("DefaultConnection");

            this.context = new ApplicationDbContext(connectionString);

            //Set up blob service client
            this.blobServiceClient = new BlobServiceClient(configuration["AzureBlobStorage:ConnectionString"]);

            //Set up azure blob service
            this.azureBlobService = new AzureBlobService(this.blobServiceClient);

            //Set up gender service
            this.genderService = new GenderService(context);

            //Set up roleService
            var roleManager = serviceProvider.GetRequiredService <RoleManager <Role> >();

            this.roleService = new RoleService(context, roleManager);

            //Set up automapper
            var mapperConfig = new MapperConfiguration(cfg =>
            {
                cfg.AddMaps(typeof(UserProfile));
            });

            this.mapper = mapperConfig.CreateMapper();

            //Set up userService
            var userManager = serviceProvider.GetRequiredService <UserManager <User> >();

            this.userService = new UserService(context, this.roleService as RoleService, this.genderService as GenderService, userManager, this.mapper);

            //Set up productImageService
            this.productImageService = new ProductImageService(context, this.azureBlobService);

            //Set up categoryService
            this.categoryService = new CategoryService(context);

            //Set up productService
            this.productService = new ProductService(context, this.mapper, this.productImageService, this.categoryService);

            //Set up productCommentService
            this.productCommentService = new ProductCommentService(context);

            //Set up countryService
            this.countryService = new CountryService(context);

            //Set up countryService
            this.paymentMethodService = new PaymentMethodService(context);

            //Set up sales service
            this.saleService = new SaleService(context);
        }
Exemplo n.º 26
0
 public ManageImageStreamUtil()
 {
     _container = new WindsorContainer();
     ComponentRegistrar.AddServicesTo(_container);
     ComponentRegistrar.AddNestConnection(_container);
     ComponentRegistrar.AddGenericRepositoriesTo(_container);
     ComponentRegistrar.AddCustomRepositoriesTo(_container);
     ComponentRegistrar.AddUnitOfWorkTo(_container);
     ComponentRegistrar.AddDatabaseFactoryPerThreadTo(_container);
     _productImageService = _container.Resolve <IProductImageService>();
 }
Exemplo n.º 27
0
 public ProductController(IProductService productService, IProductQuantityService productQuantityService,
                          IProductCategoryService productCategoryService, IProductImageService productImageService, ICommentService commentService
                          , ICommentVoteService commentVoteService)
 {
     _productService         = productService;
     _productQuantityService = productQuantityService;
     _productCategoryService = productCategoryService;
     _productImageService    = productImageService;
     _commentService         = commentService;
     _commentVoteService     = commentVoteService;
 }
Exemplo n.º 28
0
 public ProductService(IApplicationContext applicationContext,
                       IProductTagService productTagService,
                       IProductCategoryTagService productCategoryTagService,
                       IProductImageService productImageService,
                       ILocalize localize,
                       CMSDbContext dbContext) : base(applicationContext, dbContext)
 {
     _productTagService         = productTagService;
     _productCategoryTagService = productCategoryTagService;
     _productImageService       = productImageService;
     _localize = localize;
 }
Exemplo n.º 29
0
 public HomeController(IBannerService bannerService, IProductAdvertisement productAdvertisement,
                       IProductVariationService productVariationService, IProductService productService,
                       IProductImageService productImageService, ICategoryService categoryService, IBrandService brandService)
 {
     _bannerService           = bannerService;
     _productAdvertisement    = productAdvertisement;
     _productVariationService = productVariationService;
     _productService          = productService;
     _productImageService     = productImageService;
     _categoryService         = categoryService;
     _brandService            = brandService;
 }
Exemplo n.º 30
0
 public ProductController(IProductService productService,
                          INotificationService notificationService,
                          ILogger <ProductController> logger,
                          IConfiguration configuration,
                          IProductImageService productImageService)
 {
     _productService      = productService;
     _notificationService = notificationService;
     _logger              = logger;
     _configuration       = configuration;
     _productImageService = productImageService;
 }