Beispiel #1
0
 private Baseword GetOrCreateBaseword(string text, Wordtype wordtype, Language language)
 {
     var bwFrom = Baseword.FindByTextLanguageType(text.Trim(), language, wordtype);
     if (bwFrom == null)
     {
         bwFrom = new Baseword { Lang = language, WordType = wordtype, Text = text };
         bwFrom.Save();
     }
     return bwFrom;
 }
Beispiel #2
0
 public BasewordViewModel(Baseword baseword)
 {
     _id = baseword.Id;
     _text = baseword.Text;
 }