Example #1
0
 // Inject UserManager into constructor to get access to IdentityUser Data
 public ProfileController(
     WanderDragonContext context,
     UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Example #2
0
 // Inject UserManager into constructor to get access to IdentityUser Data (the userName of currently logged in user)
 public TravelLogController(
     WanderDragonContext context,
     UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }
Example #3
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     WanderDragonContext context,
     ILoggerFactory loggerFactory)
 {
     _userManager   = userManager;
     _signInManager = signInManager;
     _context       = context;
     _logger        = loggerFactory.CreateLogger <AccountController>();
 }
Example #4
0
 public DragonSpritesController(WanderDragonContext context)
 {
     _context = context;
 }
Example #5
0
 public DashboardController(
     WanderDragonContext context)
 {
     _context = context;
 }