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; }
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; }
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; }
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; }
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; }
public ProductService(ProductDBContext productDBContext, IProductCommentService productCommentService) { _productDBContext = productDBContext; _productCommentService = productCommentService; }
public ProductCommentManager(IProductCommentService service) { _service = service; }
public CommentsController(IProductCommentService commentService, IConfiguration configuration) { _commentService = commentService; _configuration = configuration; }
public ProductController(IProductService productService, IProductCommentService productCommentService, IMapper mapper) { _productService = productService; _productCommentService = productCommentService; _mapper = mapper; }