public ActionResult easygo() { if (!User.Identity.IsAuthenticated) { Session["Role"] = null; } Dictionary <string, string> querys = formatQuery(); ViewBag.querys = querys; string ec; decimal id = -1; if (querys.TryGetValue("ec", out ec) && !string.IsNullOrWhiteSpace(ec)) { using (var svc = new OrmService(AppConfigs.sqlfaceconn)) { if (!string.IsNullOrWhiteSpace(ec)) { var ee = (svc.FilterWhere <ExternalEntryMap>(s => s.Entry_Code == ec)).FirstOrDefault(); if (ee != null) { id = ee.Engine_ID; } } } } if (id == -1) { return(HttpNotFound("资源不存在!")); } else { ViewBag.linkOuts = getLinkOut(id); object ret = Newtonsoft.Json.JsonConvert.SerializeObject(XAngularController.GetRenders(id, null).Result); return(View("Easyhandle", ret)); } }