/// <summary>
 /// 新增或修改角色
 /// </summary>
 /// <returns></returns>
 public ActionResult Create(Guid? id, EnumPageState? pageState)
 {
     ModelSysRoleManageCreate model = new ModelSysRoleManageCreate();
     model.sysRoleID = id;
     model.pageState = pageState;
     model.RetriveData();
     return View(model);
 }
 public ActionResult Create(ModelSysRoleManageCreate model)
 {
     try
     {
         model.Save();
         var option = DialogOption.GetDefaultInstance();
         option.IsRefreshParentAsynchronous = false;
         return Content(WebTools.ScriptCloseDialog(option));
     }
     catch
     {
         Error = Resources.Properties.Resources.M00002E;
         model.RetriveData();
         return View(model);
     }
 }