Пример #1
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(JC.Model.menus model)
        {
            var cb = dal.Update(model);

            JC.Common.DataCache.Set(cacName, _GetList());
            return(cb);
        }
Пример #2
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(JC.Model.menus model)
        {
            var cb = dal.Add(model);

            JC.Common.DataCache.Set(cacName, _GetList());
            return(cb);
        }