示例#1
0
 public HomeController(
     ApplicationDbContext context,
     ILogger <HomeController> logger,
     UserManager <IdentityUser> userManager)
 {
     _usersHandler    = new UsersHandler(context);
     _userManager     = userManager;
     _messagesHandler = new MessegesHandler(context);
     _logger          = logger;
 }
 public MessegesController(ApplicationDbContext context, UserManager <IdentityUser> userManager)
 {
     _usersHandler    = new UsersHandler(context);
     _userManager     = userManager;
     _messegesHandler = new MessegesHandler(context);
 }