public ActionResult addTree(FamilyTree.Models.Trees model) { db.Trees.Add(model.add); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Index() { Trees trees = new Trees(); trees.read = db.Set<Tree>(); return View(trees); }