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