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