public ActionResult EditActionInfo(ActionInfo actionInfo)
 {
     actionInfo.ModifiedOn = DateTime.Now;
     if (ActionInfoService.EditEntity(actionInfo))
     {
         return(Content("ok"));
     }
     else
     {
         return(Content("no"));
     }
 }
        public ActionResult EditRoleInfo(ActionInfo roleInfo)
        {
            var ai = ActionInfoService.LoadEntities(x => x.ID == roleInfo.ID).FirstOrDefault();

            ai.ActionInfoName = roleInfo.ActionInfoName;
            ai.Url            = roleInfo.Url;
            ai.HttpMethod     = roleInfo.HttpMethod;

            if (ActionInfoService.EditEntity(ai))
            {
                return(Content("ok"));
            }
            else
            {
                return(Content("no"));
            }
        }