public CoursesController(
     IUserService userSvc,
     IPrincipal currentUser,
     ICourseAchievementsService courseAchievementsService,
     IEntityRepository <Course> courseRepo,
     IEntityRepository <CourseModule> courseModuleRepo
     )
 {
     userService      = userSvc;
     this.currentUser = currentUser;
     this.courseAchievementsService = courseAchievementsService;
     this.courseRepo       = courseRepo;
     this.courseModuleRepo = courseModuleRepo;
 }
示例#2
0
 public UsersController(
     IUserService userSvc,
     IPackageService packageService,
     IMessageService messageService,
     IConfiguration settings,
     IPrincipal currentUser,
     IUserSiteProfilesService profilesService,
     ICourseAchievementsService courseAchievementsService
     )
 {
     userService                    = userSvc;
     this.packageService            = packageService;
     this.messageService            = messageService;
     this.settings                  = settings;
     this.currentUser               = currentUser;
     this.profilesService           = profilesService;
     this.courseAchievementsService = courseAchievementsService;
 }