예제 #1
0
 public HomeController()
 {
     projectsRepository    = new ProjectsRepository(db);
     coursesRepository     = new CoursesRepository(db);
     usersRepository       = new UsersRepository(db);
     submissionsRepository = new SubmissionsRepository(db);
 }
예제 #2
0
 public ProjectTasksController()
 {
     projectTasksRepository = new ProjectTasksRepository(db);
     coursesRepository      = new CoursesRepository(db);
     projectsRepository     = new ProjectsRepository(db);
     submissionsRepository  = new SubmissionsRepository(db);
     userCoursesRepostiory  = new UserCoursesRepository(db);
 }
예제 #3
0
 public UsersController()
 {
     store                 = new UserStore <ApplicationUser>(db);
     userManager           = new UserManager <ApplicationUser>(store);
     usersRepository       = new UsersRepository(db);
     userCoursesRepository = new UserCoursesRepository(db);
     coursesRepository     = new CoursesRepository(db);
     submissionsRepository = new SubmissionsRepository(db);
 }
예제 #4
0
 public SubmissionsController()
 {
     submissionsRepository = new SubmissionsRepository(db);
     coursesRepository     = new CoursesRepository(db);
 }
예제 #5
0
 /*
  * Initialization.
  */
 public SubmissionsHelper(ApplicationDbContext context)
 {
     submissionRepository = new SubmissionsRepository(context);
 }
예제 #6
0
 public ProjectsController()
 {
     projectsRepository    = new ProjectsRepository(db);
     coursesRepository     = new CoursesRepository(db);
     submissionsRepository = new SubmissionsRepository(db);
 }