public ActionResult AddActionInfo(ActionInfo actionInfo)
 {
     actionInfo.DelFlag    = (short)DeleteEnumType.Normal;
     actionInfo.SubTime    = DateTime.Now;
     actionInfo.ModifiedOn = DateTime.Now;
     actionInfo.IsMenu     = Request["IsMenu"] == null ? false : true;
     ActionInfoService.AddEntity(actionInfo);
     return(Content("ok"));
 }
        public ActionResult AddActionInfo(ActionInfo actionInfo)
        {
            actionInfo.DelFlag    = 0;
            actionInfo.ModifiedOn = DateTime.Now.ToShortTimeString();
            actionInfo.SubTime    = DateTime.Now;
            actionInfo.Url        = actionInfo.Url.ToLower();

            ActionInfoService.AddEntity(actionInfo);
            return(Content("ok"));
        }
Exemple #3
0
        public ActionResult AddActionInfo()
        {
            ActionInfo action = new ActionInfo();

            action.ActionInfoName = Request["ActionInfoName"];
            action.ActionTypeEnum = short.Parse(Request["ActionTypeEnum"]);
            action.Remark         = Request["Remark"];
            action.Sort           = Request["Sort"];
            action.MenuIcon       = Request["MenuIcon"];
            action.Url            = Request["Url"];
            action.HttpMethod     = Request["HttpMethod"];
            action.DelFlag        = 0;
            action.SubTime        = DateTime.Now;
            action.ModifiedOn     = DateTime.Now.ToString();
            if (ActionInfoService.AddEntity(action) != null)
            {
                return(Content("Y"));
            }
            else
            {
                return(Content("N"));
            }
        }