예제 #1
0
 public TeachersController(ISubjectService subjectService, ITextService textService,
                           ISchoolClassService classService, IStudentService studentService, IHomeworkService homeworkService,
                           ITeacherService teacherService, IAnswerService answerService, IWordDefinitionService wordDefinitionService)
 {
     _subjectService        = subjectService;
     _textService           = textService;
     _classService          = classService;
     _studentService        = studentService;
     _homeworkService       = homeworkService;
     _teacherService        = teacherService;
     _answerService         = answerService;
     _wordDefinitionService = wordDefinitionService;
 }
예제 #2
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="subjectServiceService"></param>
        /// <param name="homeworkService"></param>
        /// <param name="answerService"></param>
        /// <param name="studentService"></param>
        /// <param name="schoolClassService"></param>
        /// <param name="textService"></param>
        /// all neccesery services
        public StudentsController(ISubjectService subjectServiceService, IHomeworkService homeworkService, IAnswerService answerService, IStudentService studentService, ISchoolClassService schoolClassService, ITextService textService, IWordDefinitionService wordDefinitionService)
        {
            _textService           = textService;
            _schoolClassService    = schoolClassService;
            _subjectServiceService = subjectServiceService;
            _homeworkService       = homeworkService;
            _answerService         = answerService;
            _studentService        = studentService;
            _wordDefinitionService = wordDefinitionService;

            foreach (var wordDef in _wordDefinitionService.All())
            {
                dictionary.Add(wordDef.Word, wordDef.Definition);
            }

            dictionary.Add("סירותיהם", "הסירות שלהם, פירוש מעניין..");
            dictionary.Add("נמרצות", "מלא מרץ, מלא חיות, אנרגטי");
            dictionary.Add("עמך", "יחד, בצוותא, בשיתוף; אחד עם השני");
            dictionary.Add("שטה", "מפליגה בים");
            // dictionary.Add("יפהפייה", "מהממת ביופיה");
        }
예제 #3
0
 public DefinitionController(IWordDefinitionService wordDefinitionService, IPolyglotListsService polyglotListsService) : base()
 {
     _wordDefinitionService = wordDefinitionService;
     _polyglotListsService  = polyglotListsService;
 }
예제 #4
0
 public WordDefinitionController(IWordDefinitionService wordDefinitionService, IMapper mapper)
 {
     _wordDefinitionService = wordDefinitionService;
     _Mapper = mapper;
 }