示例#1
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(SpecialVote model)
 {
     using (DBHelper db = DBHelper.Create())
     {
         db.Insert<SpecialVote>(model);
     }
 }
示例#2
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(Ajax.Model.SpecialVote model)
 {
     return(dal.Update(model));
 }
示例#3
0
 /// <summary>
 /// 增加一条数据
 /// </summary>
 public void Add(Ajax.Model.SpecialVote model)
 {
     dal.Add(model);
 }
示例#4
0
 /// <summary>
 /// 更新一条数据
 /// </summary>
 public bool Update(SpecialVote model)
 {
     using (DBHelper db = DBHelper.Create())
     {
         db.Update<SpecialVote>(model);
         return true;
     }
 }