예제 #1
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(Model.article_category model, int role_id)
        {
            int id = dal.Add(model, role_id);

            if (id > 0)
            {
                //更新缓存
                model.id = id;
                SetCache(model);
            }
            return(id);
        }
예제 #2
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(Model.article_category model)
 {
     return(dal.Add(model));
 }
예제 #3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public int Add(Model.article_category model, int role_id)
 {
     return(dal.Add(model, role_id));
 }