public ActionResult Insert(Vocabulary vocabulary) { _context.Configuration.LazyLoadingEnabled = true; _context.Vocabularies.Add(vocabulary); _context.SaveChanges(); return(View()); }
public ActionResult Insert(Grammar grammar) { _context.Configuration.LazyLoadingEnabled = true; _context.Grammars.Add(grammar); _context.SaveChanges(); return(View()); }