示例#1
0
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public bool Update(JC.Model.sites model)
        {
            var cb = dal.Update(model);

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

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