public ActionResult Details(string PasgoID, int type) { if (Convert.ToInt32(Session["Level"]) == 1 || Session["Level"] == null) { return(RedirectToAction("Index", "Home")); } FullInfoUser_Result result = db.FullInfoUser(Convert.ToInt32(PasgoID), Convert.ToBoolean(type)).ElementAt(0); List <SimpleHistory_Result> hresult = db.SimpleHistory(Convert.ToInt32(PasgoID), Convert.ToBoolean(type)).ToList(); return(View(Tuple.Create(result, hresult, type))); }