Пример #1
0
 //**********************************************************************************************************
 // Constructor
 //
 // Set up the Controller and initalize modual level variables,
 //
 // Inputs:
 // MvcMatriarchyContext context                    view into the apllication data in the database
 //                                            assign it to modual property _context
 // UserManager<ApplicationUser> userManager   User for getting User ID and permissions
 //**********************************************************************************************************
 public BrowseController(MvcMatriarchyContext context, UserManager <ApplicationUser> userManager,
                         ILogger <BrowseController> logger)
 {
     try
     {
         _context     = context;
         _userManager = userManager;
         _logger      = logger;
     }
     catch
     {
     }
 }
Пример #2
0
 public AccountController(
     UserManager <ApplicationUser> userManager,
     SignInManager <ApplicationUser> signInManager,
     IEmailSender emailSender,
     ILogger <AccountController> logger,
     MvcMatriarchyContext context)
 {
     try
     {
         _userManager   = userManager;
         _signInManager = signInManager;
         _emailSender   = emailSender;
         _logger        = logger;
         _context       = context;
     }
     catch
     {
     }
 }