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; }
public BasewordViewModel(Baseword baseword) { _id = baseword.Id; _text = baseword.Text; }