Esempio n. 1
0
 /**
  * Creates a home controller with the given DataContext.
  */
 public CommentController(RCloneDbContext context,
                          IAuthorizationService authorizationService,
                          UserManager <ApplicationUser> userManager)
 {
     _context = context;
     _authorizationService = authorizationService;
     _userManager          = userManager;
 }
Esempio n. 2
0
 public IndexModel(
     RCloneDbContext rotwDbContext,
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender)
 {
     _context       = rotwDbContext;
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
 }
 public UserIsCommenterAuthorizationHandler(RCloneDbContext context, UserManager <ApplicationUser> userManager)
 {
     _context     = context;
     _userManager = userManager;
 }