Esempio n. 1
0
        /// <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());
        }
Esempio n. 2
0
        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"));
        }