/// <summary> /// 案件裁决界面 /// </summary> /// <returns></returns> public ActionResult verdict(int?id) { int caseid = id ?? 0; if (!User.Identity.IsAuthenticated || caseid == 0) { return(Redirect("/home")); } CaseInfo dbcase = new CaseInfo(); ViewBag.Case = dbcase.GetCaseById(caseid); return(View()); }
public ActionResult draft(int caseid, string username) { if (!User.Identity.IsAuthenticated) { return(View("publish")); } if (User.Identity.Name != username) { return(View("publish")); } CaseInfo dbcase = new CaseInfo(); var draft = dbcase.GetCaseById(caseid); ViewBag.draft = draft; return(View("publish")); }