/// <summary> /// 分页获取数据列表 /// </summary> //public DataSet GetList(int PageSize,int PageIndex,string strWhere) //{ //return dal.GetList(PageSize,PageIndex,strWhere); //} #endregion BasicMethod #region ExtensionMethod public bool Edit(DBA.Model.Users model) { if (model.ID == 0) { Add(model); return(true); } else { return(Update(model)); } }
public bool UsersUpdate(DBA.Model.Users PoorModel, DBA.Model.Users model) { return(dal.UsersUpdate(PoorModel, model)); }
/// <summary> /// 更新一条数据 /// </summary> public bool Update(DBA.Model.Users model) { return(dal.Update(model)); }
/// <summary> /// 增加一条数据 /// </summary> public int Add(DBA.Model.Users model) { return(dal.Add(model)); }