예제 #1
0
 public ProductCommentsController(IPermissionService permissionService,
                                  IProductService productService,
                                  IProductCommentService productCommentService,
                                  IWorkContext workContext,
                                  ProductCommentsSetting productCommentsSetting,
                                  ILocalizationService localizationService,
                                  IDateTimeHelper dateTimeHelper,
                                  IStoreContext storeContext,
                                  CustomerSettings customerSettings,
                                  ICustomerService customerService,
                                  IUrlRecordService urlRecordService,
                                  IProductCommentModelFactory productCommentModelFactory)
 {
     this._permissionService          = permissionService;
     this._productService             = productService;
     this._productCommentService      = productCommentService;
     this._workContext                = workContext;
     this._productCommentsSetting     = productCommentsSetting;
     this._localizationService        = localizationService;
     this._dateTimeHelper             = dateTimeHelper;
     this._storeContext               = storeContext;
     this._customerSettings           = customerSettings;
     this._customerService            = customerService;
     this._urlRecordService           = urlRecordService;
     this._productCommentModelFactory = productCommentModelFactory;
 }
예제 #2
0
 public ProductCommentsAdminController(IPermissionService permissionService,
                                       IWorkContext workContext,
                                       IStoreService storeService,
                                       ISettingService settingService,
                                       ILocalizationService localizationService,
                                       IScheduleTaskService scheduleTaskService,
                                       ICustomerService customerService,
                                       IPictureService pictureService,
                                       IProductCommentService productCommentService,
                                       IStoreContext storeContext,
                                       IDateTimeHelper dateTimeHelper,
                                       IProductService productService,
                                       IUrlRecordService urlRecordService)
 {
     this._permissionService     = permissionService;
     this._storeService          = storeService;
     this._workContext           = workContext;
     this._settingService        = settingService;
     this._localizationService   = localizationService;
     this._scheduleTaskService   = scheduleTaskService;
     this._customerService       = customerService;
     this._pictureService        = pictureService;
     this._productCommentService = productCommentService;
     this._storeContext          = storeContext;
     this._dateTimeHelper        = dateTimeHelper;
     this._productService        = productService;
     this._urlRecordService      = urlRecordService;
 }
예제 #3
0
 public UserController(IUserService userService, IProductCommentService productCommentService, IStoreService storeService, IMapper mapper)
 {
     _userService           = userService;
     _productCommentService = productCommentService;
     _mapper       = mapper;
     _storeService = storeService;
 }
        public ProductCommentController(IProductCommentService productCommentService,IProductService productService,IMemberService memberService,IWorkContext workContext,IOrderDetailService orderDetailService)
		{
		    _productCommentService = productCommentService;
            _productService = productService;
            _memberService = memberService;
            _workContext = workContext;
            _orderDetailService = orderDetailService;
		}
예제 #5
0
 public ProductCommentController(IProductCommentService productCommentService, IProductService productService, IMemberService memberService, IWorkContext workContext, IOrderDetailService orderDetailService)
 {
     _productCommentService = productCommentService;
     _productService        = productService;
     _memberService         = memberService;
     _workContext           = workContext;
     _orderDetailService    = orderDetailService;
 }
        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);
        }
 public ProductsCommentsController
     (IProductService productService, IMapper mapper, IProductCommentService productCommentService, IUserService userService,
     JavaScriptEncoder javaScriptEncoder, UserManager <User> userManager, SendGridEmailSender sendGridEmailSender,
     HtmlEncoder htmlEncoder)
 {
     this.productService        = productService;
     this.mapper                = mapper;
     this.productCommentService = productCommentService;
     this.userService           = userService;
     this.javaScriptEncoder     = javaScriptEncoder;
     this.userManager           = userManager;
     this.sendGridEmailSender   = sendGridEmailSender;
     this.htmlEncoder           = htmlEncoder;
 }
예제 #8
0
 public ProductCommentsViewComponents(IProductService productService,
                                      IProductCommentService productCommentService,
                                      IWorkContext workContext,
                                      ProductCommentsSetting productCommentsSetting,
                                      IProductCommentModelFactory productCommentModelFactory,
                                      ILocalizationService localizationService)
 {
     this._productService             = productService;
     this._productCommentService      = productCommentService;
     this._workContext                = workContext;
     this._productCommentsSetting     = productCommentsSetting;
     this._productCommentModelFactory = productCommentModelFactory;
     this._localizationService        = localizationService;
 }
 public ProductsController
     (IProductService productService, IMapper mapper, IProductCommentService productCommentService, IUserService userService,
     JavaScriptEncoder javaScriptEncoder, UserManager <User> userManager, SendGridEmailSender sendGridEmailSender,
     HtmlEncoder htmlEncoder, ICategoryService categoryService, IProductImageService productImageService,
     BlobServiceClient blobServiceClient, IAzureBlobService azureBlobService)
 {
     this.productService        = productService;
     this.mapper                = mapper;
     this.productCommentService = productCommentService;
     this.userService           = userService;
     this.javaScriptEncoder     = javaScriptEncoder;
     this.userManager           = userManager;
     this.sendGridEmailSender   = sendGridEmailSender;
     this.htmlEncoder           = htmlEncoder;
     this.categoryService       = categoryService;
     this.productImageService   = productImageService;
     this.blobServiceClient     = blobServiceClient;
     this.azureBlobService      = azureBlobService;
 }
 public ProductCommentController(IProductCommentService productCommentService)
 {
     _productCommentService = productCommentService;
 }
예제 #11
0
 public ProductService(ProductDBContext productDBContext, IProductCommentService productCommentService)
 {
     _productDBContext      = productDBContext;
     _productCommentService = productCommentService;
 }
예제 #12
0
 public ProductCommentManager(IProductCommentService service)
 {
     _service = service;
 }
예제 #13
0
 public CommentsController(IProductCommentService commentService, IConfiguration configuration)
 {
     _commentService = commentService;
     _configuration  = configuration;
 }
 public ProductController(IProductService productService, IProductCommentService productCommentService, IMapper mapper)
 {
     _productService        = productService;
     _productCommentService = productCommentService;
     _mapper = mapper;
 }