/// <summary> /// 案件详细信息 /// </summary> /// <returns></returns> public ActionResult article(int?id) { int caseid = id ?? 0; if (caseid <= 0) { return(Redirect("/home/index")); } else { if (User.Identity.IsAuthenticated) { VerdictInfo dbverdict = new VerdictInfo(); var temp = dbverdict.GetVerdivt(HttpContext.User.Identity.Name, caseid); var temp2 = temp.Count(); ViewBag.verdict = temp.FirstOrDefault(); } CaseInfo dbcase = new CaseInfo(); var caseitem = dbcase.PublicCase(caseid); return(View(caseitem)); } }