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