public MenuItemController(SpiceStoreContext _context, ISubCategoryRepository subCatRepository, ICategoryRepository _categoryRepository, IWebHostEnvironment hostEnvironment) { storeContext = _context; categoryRepository = _categoryRepository; subCategoryRepository = subCatRepository; webHostEnvironment = hostEnvironment; }
public SubCategoryRepository(SpiceStoreContext spiceStoreContext) { _context = spiceStoreContext; }
public SubCategoryController(SpiceStoreContext spiceStoreContext, ISubCategoryRepository _subcategoryRepository, ICategoryRepository _categoryRepository) { subCategoryRepository = _subcategoryRepository; categoryRepository = _categoryRepository; _context = spiceStoreContext; }
public UserController(SpiceStoreContext spiceStoreContext, UserManager <ApplicationUser> _user) { _context = spiceStoreContext; userManager = _user; }
public HomeController(ILogger <HomeController> logger, SpiceStoreContext context, RoleManager <IdentityRole> roleMgr) { _logger = logger; _context = context; roleManager = roleMgr; }
public CouponController(SpiceStoreContext _context) { storeContext = _context; }
//Constructor public CategoryController(ICategoryRepository _categoryRepository, SpiceStoreContext context) { categoryRepository = _categoryRepository; _context = context; }
public ShoppingController(UserManager <ApplicationUser> _userManager, SignInManager <ApplicationUser> _signInManager, SpiceStoreContext context) { userManager = _userManager; signInManager = _signInManager; _context = context; }