Exemplo n.º 1
0
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public int Add(BCW.HB.Model.HbPost model)
        {
            int id = dal.Add(model);

            try
            {
                int    usid     = model.UserID;
                string username = new BCW.BLL.User().GetUsName(usid);
                string Notes    = "发红包者";
                new BCW.Draw.draw().AddjfbyTz(usid, username, Notes);//点值抽奖
            }
            catch { }

            return(id);
        }
Exemplo n.º 2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(BCW.HB.Model.HbPost model)
 {
     return(dal.Update(model));
 }