Esempio n. 1
0
        private readonly IMapper Mapper;                                         // Mapper for ViewModels

        //Constructor with parameters
        public HomeController(IWordInEnglishRepository wordsInEnglishContext,
                              IStageOfMethodRepository stageOfMethodContext,
                              ITranslationOfWordRepository translationsOfWordContext,
                              IMapper mapper)
        {
            this.WordsInEnglishContext     = wordsInEnglishContext;
            this.StageOfMethodContext      = stageOfMethodContext;
            this.TranslationsOfWordContext = translationsOfWordContext;
            this.Mapper = mapper;
        }
Esempio n. 2
0
        private readonly IMapper Mapper;                                         // Mapper for ViewModels

        public TestYourselfController(IWordInEnglishRepository wordsInEnglishContext,
                                      ITranslationOfWordRepository translationsOfWordContext,
                                      IStageOfMethodRepository stageOfMethodsContext,
                                      IMapper mapper)
        {
            WordsInEnglishContext     = wordsInEnglishContext;
            TranslationsOfWordContext = translationsOfWordContext;
            StageOfMethodsContext     = stageOfMethodsContext;
            Mapper = mapper;
        }