/// <summary> /// Initializes a new instance of the <see cref="LearningLineController"/> class. /// </summary> /// <param name="goalService">Provides specific data operations for the <see cref="Goal"/> model.</param> /// <param name="activityLoggerService">When overridden in a derived form, provides functionality for loggers that handle events raised by the url that the request came through.</param> public LearningLineController(IGenericService <LearningLine> learningLineService, IGenericService <Goal> goalService, IObjectFinderService <Goal> goalFinder, IManyToManyMapperService <LearningLine, LearningLineGoal, Goal> mapperService) { this.learningLineService = learningLineService; this.goalService = goalService; this.mapperService = mapperService; this.goalFinder = goalFinder; }
/// <summary> /// Initializes a new instance of the <see cref="CourseController"/> class. /// </summary> /// <param name="courseService">Provides specific data operations for the <see cref="Course"/> model.</param> /// <param name="moduleService">Provides specific data operations for the <see cref="Module"/> model.</param> /// <param name="moduleFinder">Provides specific data operations for module objects.</param> /// <param name="manyToManyMapper">Maps entities for Many-To-Many relations</param> /// <param name="activityLoggerService">When overridden in a derived form, provides functionality for loggers that handle events raised by the url that the request came through.</param> public CourseController(IGenericService <Course> courseService, IGenericService <Module> moduleService, IObjectFinderService <Module> moduleFinder, IManyToManyMapperService <Course, CourseModule, Module> manyToManyMapper, IGenericService <ExamProgram> examProgramService, IGenericService <Teacher> teacherService) { this.courseService = courseService; this.moduleService = moduleService; this.moduleFinder = moduleFinder; this.manyToManyMapper = manyToManyMapper; this.examprogramService = examProgramService; this.teacherService = teacherService; }
/// <summary> /// Initializes a new instance of the <see cref="CourseController"/> class. /// </summary> /// <param name="dataService">Service that provides data operations.</param> /// <param name="mapper">Map entities to one or another.</param> public CourseController(IGenericServiceV2 dataService, IManyToManyMapperService <Course, CourseModule, Module> mapper) { this.dataService = dataService; this.mapper = mapper; }