public bool Delete(int buildId) { string funMsg = "function: Delete(int buildId)" + FileUtility.NewLine + _classMsg; var dbService = new BuildDbService(); return(dbService.Delete(buildId)); }
public int AddNew(CentaBuildType model) { string funMsg = "function: AddNew(CentaBuildType model)" + FileUtility.NewLine + _classMsg; var dbService = new BuildDbService(); return(dbService.AddNew(model)); }
public bool Update(CentaBuildType model) { string funMsg = "function: Update(CentaBuildType model)" + FileUtility.NewLine + _classMsg; var dbService = new BuildDbService(); return(dbService.Update(model)); }
public List <CentaBuildType> GetList(int pageIndex, int pageSize, out int recordCount) { string funMsg = "function: GetList(int pageIndex,int pageSize, out int recordCount)" + FileUtility.NewLine + _classMsg; var dbService = new BuildDbService(); DataTable table = dbService.GetDataTable(pageIndex, pageSize, out recordCount); if (table != null && table.Rows.Count > 0) { List <CentaBuildType> rs = (from DataRow row in table.Rows select new CentaBuildType(row)).ToList(); return(rs); } return(new List <CentaBuildType>()); }