public ActionResult Create(Guid? id, EnumPageState? pageState)
 {
     ViewBag.PageState = GetPageState(id, pageState);
     if (id != null)
     {
         ModelWorkFlowCreate model = new ModelWorkFlowCreate();
         model.WFFlow = bizWFFlow.GetByID<Guid>(id.Value);
         return View(model);
     }
     return View();
 }
 public ActionResult Create(ModelWorkFlowCreate model)
 {
     try
     {
         model.Save();
         return Content(WebTools.ScriptCloseDialog(DialogOption.GetDefaultInstance()));
     }
     catch
     {
         Error = "操作失败";
         ViewBag.PageState = PageState;
         return View(model);
     }
 }