// Inject UserManager into constructor to get access to IdentityUser Data public ProfileController( WanderDragonContext context, UserManager <ApplicationUser> userManager) { _context = context; _userManager = userManager; }
// 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; }
public AccountController( UserManager <ApplicationUser> userManager, SignInManager <ApplicationUser> signInManager, WanderDragonContext context, ILoggerFactory loggerFactory) { _userManager = userManager; _signInManager = signInManager; _context = context; _logger = loggerFactory.CreateLogger <AccountController>(); }
public DragonSpritesController(WanderDragonContext context) { _context = context; }
public DashboardController( WanderDragonContext context) { _context = context; }