Пример #1
0
        public int MenuAction(SysMenuModel model, SysEnum.ActionType actionType)
        {
            DbCommand cmd = db.GetStoredProcCommand("PROC_T_SYS_MenuEdit");

            db.AddInParameter(cmd, "@Type", DbType.Int32, Convert.ToInt32(actionType));
            db.AddInParameter(cmd, "@MenuID", DbType.Guid, model.MenuID);
            db.AddInParameter(cmd, "@ParentID", DbType.String, model.ParentID);
            db.AddInParameter(cmd, "@MenuName", DbType.String, model.MenuName);
            db.AddInParameter(cmd, "@MenuImg", DbType.String, model.MenuImg);
            db.AddInParameter(cmd, "@MenuType", DbType.Int32, model.MenuType);
            db.AddInParameter(cmd, "@NavigateUrl", DbType.String, model.NavigateUrl);
            db.AddInParameter(cmd, "@DeleteFlag", DbType.Int32, model.DeleteFlag);
            db.AddInParameter(cmd, "@SortCode", DbType.Int32, model.SortCode);
            int i = db.ExecuteNonQuery(cmd);

            return(i);
        }
Пример #2
0
 public int MenuAction(SysMenuModel model, SysEnum.ActionType actionType)
 {
     return(DAL.MenuAction(model, actionType));
 }