コード例 #1
0
 /// <summary>
 /// Parameterized constructor for AuthController, sets up context for calling IGradeExamRepository and fields involving a user.
 /// </summary>
 /// <param name="context">repository for calling methods</param>
 /// <param name="userManager">Manages users</param>
 /// <param name="signInManager">Manages sign ins</param>
 /// <param name="roleManager">Manages roles</param>
 public AuthController(IGradeExamRepository context, UserManager <User> userManager, SignInManager <User> signInManager, RoleManager <IdentityRole> roleManager)
 {
     this.context       = context;
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.roleManager   = roleManager;
 }
コード例 #2
0
 /// <summary>
 /// Constructor for connecting to an IGradeExamRepository
 /// </summary>
 /// <returns></returns>
 public HomeController(IGradeExamRepository context)
 {
     this.context = context;
 }
コード例 #3
0
 /// <summary>
 /// Constructor for connection to an IGradeExamRepository
 /// </summary>
 /// <param name="context">connection to an IGradeExamRepository</param>
 /// <returns></returns>
 public QuesAnswerController(IGradeExamRepository context)
 {
     this.context = context;
 }
コード例 #4
0
 /// <summary>
 /// Constructor for building a connection to IGradeExamRepository
 /// </summary>
 /// <param name="context">connection to IGradeExamRepository</param>
 /// <returns></returns>
 public StudentController(IGradeExamRepository context)
 {
     this.context = context;
 }
コード例 #5
0
 /// <summary>
 /// Parameterized constructor for creating a context to IGradeExamRepository
 /// </summary>
 /// <param name="context">The view model for resetting a password</param>
 /// <returns></returns>
 public ConcentrationController(IGradeExamRepository context)
 {
     _context = context;
 }