public WordTranslationModel Map(WordTranslation WordTranslation)
 {
     WordTranslationModel wordTranslationModel = new WordTranslationModel();
     wordTranslationModel.Id = WordTranslation.Id;
     wordTranslationModel.OriginalWord = WordTranslation.OriginalWord.Value;
     wordTranslationModel.TranslationWord = WordTranslation.TranslationWord.Value;
     return wordTranslationModel;
 }
示例#2
0
        public WordTranslationModel Map(WordTranslation WordTranslation)
        {
            WordTranslationModel wordTranslationModel = new WordTranslationModel();

            wordTranslationModel.Id              = WordTranslation.Id;
            wordTranslationModel.OriginalWord    = WordTranslation.OriginalWord.Value;
            wordTranslationModel.TranslationWord = WordTranslation.TranslationWord.Value;
            return(wordTranslationModel);
        }