public CourseSessionController(lmsContext context, ICourseSessionRepository courseSessionRepository, IValidationService validationService)
 {
     _context = context;
     _courseSessionRepository = courseSessionRepository;
     _validationService       = validationService;
     _NotFound = new GenericResult {
         Response = false, Message = "Record not found"
     };
 }
Exemplo n.º 2
0
 public ClassController(lmsContext context,
                        IClassRepository classRepository,
                        ICourseRepository courseRepository,
                        ICourseSessionRepository courseSessionRepository,
                        ILearnerRepository learnerRepository,
                        IValidationService validationService)
 {
     _context                 = context;
     _classRepository         = classRepository;
     _courseSessionRepository = courseSessionRepository;
     _courseRepository        = courseRepository;
     _learnerRepository       = learnerRepository;
     _validationService       = validationService;
     _NotFound                = new GenericResult {
         Response = false, Message = "Record not found"
     };
     _Duplicate = new GenericResult {
         Response = false, Message = "Record already exists. Cannot enter duplicate entry"
     };
 }
Exemplo n.º 3
0
 public CourseSessionService(ICurrentContextProvider contextProvider, ICourseSessionRepository <TCourseSession> courseSessionRepository) : base(contextProvider)
 {
     this.courseSessionRepository = courseSessionRepository;
 }