public JsonResult pedigree(int id) { Pedigree pedigree = new Pedigree(); pgsql conn = new pgsql(); if (conn.open()) { pedigree = conn.sqlPedigree(id); } return(Json(pedigree)); }
// GET: Pedigree public ActionResult Index(int id) { Pedigree pedigree = new Pedigree(); pgsql conn = new pgsql(); if (conn.open()) { pedigree = conn.sqlPedigree(id); } ViewBag.pedigree = pedigree; //return Json(pedigree); return(View()); }