public ActionResult Index(string id) { if (string.IsNullOrWhiteSpace(id)) { id = ((IList<Node>)ViewData["NodeList"])[0].NodeId.ToString(); id = new NodeModel().EncryptId(id); } return View(new NodeModel(id)); }
public ActionResult NodeSingleEdit(NodeModel model) { ////檢查內容無障礙是否通過 if (!AccessibilityUtil.CheckFreeGO(model.Content)) { model.ShowFreeGOMsg = true; model.FreeGOColumnName = "Content"; } model.Update(); return View(model); }