Exemple #1
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     OtherPerspectivesContext context)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
 }
Exemple #2
0
 public CartController(Cart cart, OtherPerspectivesContext context)
 {
     _cart      = cart;
     _dbContext = context;
 }
Exemple #3
0
 //the framework handles this
 public AdminController(OtherPerspectivesContext context, ApplicationDbContext aspContext)
 {
     _context    = context;
     _aspContext = aspContext;
 }
 public Cart(OtherPerspectivesContext context)
 {
     _dbContext = context;
 }
 public ProductController(OtherPerspectivesContext context, ApplicationDbContext userContext, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userContext = userContext;
     _userManager = userManager;
 }