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