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