Пример #1
0
 public AccountController(ComputerAccessoriesV2Context db, UserManager <MyUsers> userManager, SignInManager <MyUsers> signInManager, ILogger <LoginViewModel> logger, RoleManager <IdentityRole <int> > roleManager)
 {
     _db            = db;
     _userManager   = userManager;
     _signInManager = signInManager;
     _logger        = logger;
     _roleManager   = roleManager;
 }
Пример #2
0
 public MainServiceController(ComputerAccessoriesV2Context db, UserManager <MyUsers> userManager, RoleManager <IdentityRole <int> > roleManager)
 {
     _db        = db;
     CategoryVM = new CategoryViewModel
     {
         listParent = _db.Category.ToList()
     };
     AttributeVM  = new AttributeViewModel();
     _userManager = userManager;
     _roleManager = roleManager;
     //AccountVM.Roles = _db.AspNetRoles.ToList();
 }
Пример #3
0
 public ProductController(ComputerAccessoriesV2Context db, IWebHostEnvironment hostEnvironment)
 {
     _db       = db;
     ProductVM = new ProductViewModel
     {
         Product       = new Products(),
         Brands        = _db.Brand.ToList(),
         Categories    = _db.Category.ToList(),
         ProductImages = new List <ProductImages>()
     };
     _hostEnvironment = hostEnvironment;
 }
Пример #4
0
 public BrandController(ComputerAccessoriesV2Context db)
 {
     _db = db;
 }
Пример #5
0
 public RegionController(ComputerAccessoriesV2Context db)
 {
     _db = db;
 }