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; }
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(); }
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; }
public BrandController(ComputerAccessoriesV2Context db) { _db = db; }
public RegionController(ComputerAccessoriesV2Context db) { _db = db; }