Exemplo n.º 1
0
        public ActionResult Edit(ActionInfo actionInfo)
        {
            string result = "no";

            //完成初始值
            actionInfo.IsDelete = false;
            actionInfo.SubBy    = 1;
            actionInfo.SubTime  = DateTime.Now;
            if (actionInfo.Remark == null)
            {
                actionInfo.Remark = "";
            }
            if (!actionInfo.IsMenu)
            {
                actionInfo.MenuIcon = "";
            }

            if (ActionInfoService.Edit(actionInfo))
            {
                result = "ok";
            }

            return(Content(result));
        }