Exemple #1
0
        public StudentsController(Student_Management_Data_Context context,
                                  Student_Management_IdentityContext identityContext,
                                  UserManager <IdentityUser> userManager,
                                  SignInManager <IdentityUser> _signInManager
                                  )
        {
            var roleStore = new RoleStore <IdentityRole>(identityContext);

            _roleManager  = new RoleManager <IdentityRole>(roleStore, null, null, null, null);
            _context      = context;
            _userManager  = userManager;
            signInManager = _signInManager;
        }
 public LoginModel(SignInManager <IdentityUser> signInManager,
                   ILogger <LoginModel> logger,
                   UserManager <IdentityUser> userManager,
                   IEmailSender emailSender,
                   Student_Management_Data_Context _dataContext
                   )
 {
     dataContext    = _dataContext;
     _userManager   = userManager;
     _signInManager = signInManager;
     _emailSender   = emailSender;
     _logger        = logger;
 }
Exemple #3
0
 public CoursesController(Student_Management_Data_Context context)
 {
     _context = context;
 }
 public EnrolmentsController(Student_Management_Data_Context context)
 {
     _context = context;
 }