Пример #1
0
        public AdminController(IEFProductManager repo, UserManager <IdentityUser> userManager, IConfiguration configuration, IFileManager fileManager, IHostingEnvironment env, IMapper mapper, IHttpContextAccessor httpContextAccessor, IHubContext <ChatHub> hubContext) : base(httpContextAccessor)
        {
            this.repo          = repo;
            this.userManager   = userManager;
            this.configuration = configuration;
            this.fileManager   = fileManager;
            this.env           = env;
            this.mapper        = mapper;
            this.hubContext    = hubContext;

            uploadsFile = configuration.GetSection("FileSystem").GetSection("Uploads").Value;
            tempFile    = configuration.GetSection("FileSystem").GetSection("Temp").Value;
        }
Пример #2
0
 public ProductController(IProductRepository productRepository, IEFProductManager eFProductManager, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     this.productRepository = productRepository;
     this.eFProductManager  = eFProductManager;
 }
 public ProductsController(IHttpContextAccessor httpContextAccessor, IEFProductManager eFProductManager, IMapper mapper) : base(httpContextAccessor)
 {
     this.eFProductManager = eFProductManager;
     this.mapper           = mapper;
 }
Пример #4
0
 public NavigationMenuViewComponent(IEFProductManager eFProductManager)
 {
     this.eFProductManager = eFProductManager;
 }
Пример #5
0
 public CartController(IEFProductManager _repository, Cart _cart, IHttpContextAccessor httpContextAccessor) : base(httpContextAccessor)
 {
     repository = _repository;
     cart       = _cart;
 }