public AdminController(IHttpContextAccessor httpContextAccessor, ApplicationDbContext context, IHostingEnvironment hostingEnvironment) { this._httpContextAccessor = httpContextAccessor; _hostingEnvironment = hostingEnvironment; this._context = context; this.cr = new CategoryRepo(context); this.gr = new GoodsRepo(context); this.ar = new AccountRepo(context); this.ag = new AccountGoodsRepo(context); this.og = new OrderRepo(context); }
public HomeController(IHttpContextAccessor httpContextAccessor, ApplicationDbContext context, UserManager <ApplicationUser> userManager) { this._httpContextAccessor = httpContextAccessor; this._context = context; // this._http = http; this.cr = new CategoryRepo(context); this.gr = new GoodsRepo(context); this.ar = new AccountRepo(context); this.ag = new AccountGoodsRepo(context); this.cartRepo = new CartRepo(context); this.amazon = new AmazonPriceScrapy(_context); _userManager = userManager; }
// Constructor. public TokenAPI( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IConfiguration configuration, ApplicationDbContext context, IHostingEnvironment hostingEnvironment ) { this._context = context; _hostingEnvironment = hostingEnvironment; this.gr = new GoodsRepo(context); this.ag = new AccountGoodsRepo(context); cr = new CategoryRepo(context); _userManager = userManager; _signInManager = signInManager; _configuration = configuration; }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, IEmailSender emailSender, ILogger <AccountController> logger, IHttpContextAccessor httpContextAccessor, ApplicationDbContext context, IServiceProvider serviceProvider ) { _userManager = userManager; _signInManager = signInManager; _emailSender = emailSender; _logger = logger; this._httpContextAccessor = httpContextAccessor; this._context = context; _serviceProvider = serviceProvider; this.cr = new CategoryRepo(context); this.gr = new GoodsRepo(context); this.ar = new AccountRepo(context); this.ag = new AccountGoodsRepo(context); }