public AccountController(FurnitureContext context,
                          UserManager <FurnitureUser> userManager, SignInManager <FurnitureUser> signInManager, RoleManager <IdentityRole> roleManager)
 {
     _context       = context;
     _userManager   = userManager;
     _signInManager = signInManager;
     _roleManager   = roleManager;
 }
Beispiel #2
0
        public AccountController()
        {
            FurnitureContext            db        = new FurnitureContext();
            UserStore <ApplicationUser> userStore = new UserStore <ApplicationUser>(db);

            userManager = new UserManager <ApplicationUser>(userStore);

            RoleStore <ApplicationRole> roleStore = new RoleStore <ApplicationRole>(db);

            roleManager = new RoleManager <ApplicationRole>(roleStore);
        }
 public FurnitureManager(FurnitureContext context)
 {
     _context = context;
 }
 public HomeController(FurnitureContext context)
 {
     _context = context;
 }
 public SofasController(FurnitureContext context, IWebHostEnvironment hosting)
 {
     _context = context;
     _hosting = hosting;
 }
Beispiel #6
0
 public CategoriesController(FurnitureContext context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
 public CategoryHeaderController()
 {
     db = new FurnitureContext();
 }
Beispiel #8
0
 public ShopCategoryController()
 {
     _context = new FurnitureContext();
 }
Beispiel #9
0
 public ImagesController()
 {
     db = new FurnitureContext();
 }
Beispiel #10
0
 public AjaxController()
 {
     db = new FurnitureContext();
 }
Beispiel #11
0
 public ProductsController(FurnitureContext context, IHostingEnvironment env)
 {
     _context = context;
     _env     = env;
 }
 public AjaxController(FurnitureContext context, UserManager <FurnitureUser> manager)
 {
     _context = context;
     _manager = manager;
 }
Beispiel #13
0
 public FurnitureService(FurnitureContext db, IMapper mapper)
 {
     this.db     = db;
     this.mapper = mapper;
 }
Beispiel #14
0
 public HomeController()
 {
     _context = new FurnitureContext();
 }
Beispiel #15
0
 public HeaderController()
 {
     db = new FurnitureContext();
 }
Beispiel #16
0
 public AboutController()
 {
     db = new FurnitureContext();
 }
Beispiel #17
0
 public FeaturedTitleController()
 {
     db = new FurnitureContext();
 }