public CourseSessionController(lmsContext context, ICourseSessionRepository courseSessionRepository, IValidationService validationService) { _context = context; _courseSessionRepository = courseSessionRepository; _validationService = validationService; _NotFound = new GenericResult { Response = false, Message = "Record not found" }; }
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" }; }
public CourseSessionService(ICurrentContextProvider contextProvider, ICourseSessionRepository <TCourseSession> courseSessionRepository) : base(contextProvider) { this.courseSessionRepository = courseSessionRepository; }