예제 #1
0
 public void AddWord(string word, string language)
 {
     var dictionary = new DictionaryModel()
     {
         Language = language,
         Word = word
     };
     db.DictionaryModels.Add(dictionary);
     db.SaveChanges();
 }
예제 #2
0
        public void AddWord(string word, string language)
        {
            var dictionary = new DictionaryModel()
            {
                Language = language,
                Word     = word
            };

            db.DictionaryModels.Add(dictionary);
            db.SaveChanges();
        }