コード例 #1
0
ファイル: CourseController.cs プロジェクト: anbu06/lms
 public CourseController(ICommandBus commandBus, IQueryBus queryBus, lmsContext context, IUserResolver userResolver)
 {
     _commandBus   = commandBus;
     _queryBus     = queryBus;
     _context      = context;
     _userResolver = userResolver;
 }
コード例 #2
0
 public CoursesController(lmsContext context,
                          ICourseRepository courseRepository,
                          ICourseOutlineRepository courseOutlineRepository,
                          ICourseOutcomeRepository courseOutcomeRepository,
                          ICourseAssessmentRepository courseAssessmentRepository,
                          ICompetenciesRepository courseCompetenciesRepository,
                          ICourseEvaluationRepository courseEvaluationRepository,
                          IUserRepository userRepository,
                          IValidationService validationService,
                          IEncryptionService encryptionService,
                          IFileDirectory fileDirectory,
                          IHostingEnvironment hostingEnvironment)
 {
     _context                      = context;
     _courseRepository             = courseRepository;
     _courseOutlineRepository      = courseOutlineRepository;
     _courseAssessmentRepository   = courseAssessmentRepository;
     _courseCompetenciesRepository = courseCompetenciesRepository;
     _courseEvaluationRepository   = courseEvaluationRepository;
     _courseOutcomeRepository      = courseOutcomeRepository;
     _userRepository               = userRepository;
     _validationService            = validationService;
     _encryptionService            = encryptionService;
     _fileDirectory                = fileDirectory;
     _hostingEnvironment           = hostingEnvironment;
     _NotFound                     = new GenericResult {
         Response = false, Message = "Record not found"
     };
     _UnAuthorized = new GenericResult {
         Response = false, Message = "You dont have a permission to access this module"
     };
 }
コード例 #3
0
 public CourseOutlineRepository(lmsContext context,
                                IFileDirectory fileDirectory,
                                IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _fileDirectory      = fileDirectory;
     _hostingEnvironment = hostingEnvironment;
 }
コード例 #4
0
 public DashboardController(lmsContext context, IUserRepository userRepository, IAuthenticationService authenticationService)
 {
     _context               = context;
     _userRepository        = userRepository;
     _authenticationService = authenticationService;
     _NotFound              = new GenericResult {
         Response = false, Message = "Record not found"
     };
 }
コード例 #5
0
 public CourseInstructorController(lmsContext context, IInstructorRepository instructorRepository, IValidationService validationService)
 {
     _context = context;
     _instructorRepository = instructorRepository;
     _validationService    = validationService;
     _NotFound             = new GenericResult {
         Response = false, Message = "Record not found"
     };
 }
コード例 #6
0
 public CourseAssessmentController(lmsContext context, ICourseAssessmentRepository courseAssessmentRepository, IValidationService validationService)
 {
     _context = context;
     _courseAssessmentRepository = courseAssessmentRepository;
     _validationService          = validationService;
     _NotFound = new GenericResult {
         Response = false, Message = "Record not found"
     };
 }
コード例 #7
0
 public CourseRepository(lmsContext context,
                         IEncryptionService encryptionService,
                         IFileDirectory fileDirectory,
                         IHostingEnvironment hostingEnvironment)
 {
     _context            = context;
     _encryptionService  = encryptionService;
     _hostingEnvironment = hostingEnvironment;
     _fileDirectory      = fileDirectory;
 }
コード例 #8
0
 public UserController(
     IUserService userService,
     IMapper mapper,
     IOptions <LMSCoreWebAPI.Helper.Appsettings> appSettings,
     lmsContext context)
 {
     _userService = userService;
     _mapper      = mapper;
     _appSettings = appSettings.Value;
     _context     = context;
 }
コード例 #9
0
 public CourseEvaluationController(lmsContext context, ICourseEvaluationRepository courseEvaluationRepository, IValidationService validationService)
 {
     _context = context;
     _courseEvaluationRepository = courseEvaluationRepository;
     _validationService          = validationService;
     _NotFound = new GenericResult {
         Response = false, Message = "Record not found"
     };
     _Duplicate = new GenericResult {
         Response = false, Message = "Record already exists. Cannot enter duplicate entry"
     };
 }
コード例 #10
0
 public UsersController(lmsContext context, IUserRepository userRepository, IEncryptionService encryptionService, IValidationService validationService)
 {
     _context           = context;
     _userRepository    = userRepository;
     _encryptionService = encryptionService;
     _validationService = validationService;
     _NotFound          = new GenericResult {
         Response = false, Message = "Record not found"
     };
     _UnAuthorized = new GenericResult {
         Response = false, Message = "You dont have a permission to access this module"
     };
 }
コード例 #11
0
 public SettingsController(lmsContext context, 
                           IUserGroupRepository userGroupRepository, 
                           IGroupRepository groupRepository, 
                           IStatusRepository statusRepository, 
                           IValidationService validationService)
 {
     _context = context;
     _userGroupRepository = userGroupRepository;
     _groupRepository = groupRepository;
     _statusRepository = statusRepository;
     _validationService = validationService;
     _NotFound = new GenericResult { Response = false, Message = "Record not found" };
     _Duplicate = new GenericResult { Response = false, Message = "Record already exists. Cannot enter duplicate entry" };
 }
コード例 #12
0
 public EnrollmentController(lmsContext context,
                             IEnrollmentRepository enrollmentRepository,
                             IInstructorRepository instructorRepository,
                             ILearnerRepository learnerRepository,
                             IValidationService validationService)
 {
     _context = context;
     _enrollmentRepository = enrollmentRepository;
     _instructorRepository = instructorRepository;
     _learnerRepository    = learnerRepository;
     _validationService    = validationService;
     _NotFound             = new GenericResult {
         Response = false, Message = "Record not found"
     };
 }
コード例 #13
0
 public PicklistController(
     lmsContext context,
     //ISessionTypeRepository sessionTypeRepository,
     //ITagsRepository tagsRepository,
     //ILocationRepository locationRepository,
     //IDepartmentRepository departmentRepository,
     //ICategoryRepository categoryRepository,
     IAppraisalRepository appraisalRepository,
     //ILanguageRepository languageRepository,
     //IUserRepository userRepository,
     //ILevelRepository levelRepository,
     //ITypesRepository typesRepository,
     IValidationService validationService,
     IAuthenticationService authenticationService
     )
 {
     _context = context;
     //_sessionTypeRepository = sessionTypeRepository;
     //_tagsRepository = tagsRepository;
     //_locationRepository = locationRepository;
     //_departmentRepository = departmentRepository;
     //_categoryRepository = categoryRepository;
     _appraisalRepository = appraisalRepository;
     //_languageRepository = languageRepository;
     //_userRepository = userRepository;
     //_levelRepository = levelRepository;
     //_typesRepository = typesRepository;
     _validationService     = validationService;
     _authenticationService = authenticationService;
     _NotFound = new GenericResult {
         Response = false, Message = "Record not found"
     };
     _Duplicate = new GenericResult {
         Response = false, Message = "Record already exists. Cannot enter duplicate entry"
     };
     _UnAuthorized = new GenericResult {
         Response = false, Message = "You dont have a permission to access this module"
     };
 }
コード例 #14
0
ファイル: CourseCommandHandler.cs プロジェクト: anbu06/lms
 public CourseCommandHandler(lmsContext context, IConfiguration configuration)
 {
     _context       = context;
     _configuration = configuration;
 }
コード例 #15
0
 public EntityBaseRepository(lmsContext context)
 {
     _context = context;
 }
コード例 #16
0
 public PhieumuonController(lmsContext context)
 {
     _context = context;
 }
コード例 #17
0
 public AuthenticationQueryHandler(lmsContext context)
 {
     _context = context;
 }
コード例 #18
0
 public CourseQueryHandler(lmsContext context)
 {
     _context = context;
 }
コード例 #19
0
 public InstructorRepository(lmsContext context)
 {
     _context = context;
 }
コード例 #20
0
 public ExamQueryHandler(lmsContext context)
 {
     _context = context;
 }
コード例 #21
0
 public CourseAssessmentRepository(lmsContext context)
 {
     _context = context;
 }
コード例 #22
0
 public ChatQueryHandler(lmsContext context)
 {
     _context = context;
 }
コード例 #23
0
 public DattruocController(lmsContext context)
 {
     _context = context;
 }
コード例 #24
0
 public LevelRepository(lmsContext context)
 {
     _context = context;
 }
コード例 #25
0
 public NhomsachController(lmsContext context)
 {
     _context = context;
 }
コード例 #26
0
 public UserCommandHandler(lmsContext context)
 {
     _context = context;
 }
コード例 #27
0
 public TagsRepository(lmsContext context)
 {
     _context = context;
 }
コード例 #28
0
 public UserResolver(IHttpContextAccessor accessor, lmsContext context)
 {
     _accessor = accessor;
     _context  = context;
 }
コード例 #29
0
 public EnrollmentRepository(lmsContext context)
 {
     _context = context;
 }
コード例 #30
0
 public AuthenticationService(IOptions <AppSettings> appSettings, lmsContext context, IEncryptionService encryptionService)
 {
     _appSettings       = appSettings.Value;
     _encryptionService = encryptionService;
     _context           = context;
 }