public ActionResult Insert(Vocabulary vocabulary)
 {
     _context.Configuration.LazyLoadingEnabled = true;
     _context.Vocabularies.Add(vocabulary);
     _context.SaveChanges();
     return(View());
 }
Пример #2
0
 public ActionResult Insert(Grammar grammar)
 {
     _context.Configuration.LazyLoadingEnabled = true;
     _context.Grammars.Add(grammar);
     _context.SaveChanges();
     return(View());
 }