public CreateController
 (
     UserManager <IdentityUser> userManager,
     SignInManager <IdentityUser> signInManager,
     RoleManager <IdentityRole> roleManager,
     PreSchoolDBRepository repository
 )
 {
     this.userManager   = userManager;
     this.signInManager = signInManager;
     this.roleManager   = roleManager;
     this.repository    = repository;
 }
        public LoginController(//IdentityDbContext identityContext,
            UserManager <IdentityUser> userManager,
            SignInManager <IdentityUser> signInManager,
            RoleManager <IdentityRole> roleManager,
            PreSchoolDBRepository repository)

        {
            //this.identityContext = identityContext;
            this.userManager   = userManager;
            this.signInManager = signInManager;
            this.roleManager   = roleManager;
            this.repository    = repository;

            // identityContext.Database.EnsureCreated();
        }
Exemple #3
0
 public HomeController(PreSchoolDBRepository repository)
 {
     this.repository = repository;
 }
 public TeacherController(PreSchoolDBRepository repository)
 {
     this.repository = repository;
 }
Exemple #5
0
 public ParentController(PreSchoolDBRepository repository)
 {
     this.repository = repository;
 }