public void TestMethod1() { var model = new TranslationModel(filePath, filePathEng); //var chapters = model.GetChapters(); List <ChaperItemJoined> chaptersJoined = model.GetChaptersJoined(); chaptersJoined.ForEach(i => i.InitTranslationPairs()); chaptersJoined.ForEach(i => i.InitTranslationPairsForDisplay()); //var arr = file.Split(separators, StringSplitOptions.RemoveEmptyEntries); }
public ActionResult EngTranslator() { //var modelList = TranslationModel.GetTestData(); var model = new TranslationModel( @"E:\(user_profile)\YandexDisk\english\_data\14-29 RUS.txt", @"E:\(user_profile)\YandexDisk\english\_data\14-29 ENG.txt" ); List <ChaperItemJoined> chaptersJoined = model.GetChaptersJoined(); chaptersJoined.ForEach(i => i.InitTranslationPairs()); chaptersJoined.ForEach(i => i.InitTranslationPairsForDisplay()); return(View(chaptersJoined)); }