public LocationJobPartsMapperDataTable GetJobPartsList(int locationIdParam) { LocationJobPartsMapperDataTable table = null; string filter = string.Format("LocationID = {0}", locationIdParam); DataRow[] selectRows = this.LocationJobPartsMapper.Select(filter, "JobID"); if (null != selectRows && 0 != selectRows.Length) { table = new LocationJobPartsMapperDataTable(); foreach (DataRow row in selectRows) { table.ImportRow(row); } } return(table); }
public LocationJobPartsMapperDataTable GetJobPartsList(int locationIdParam) { LocationJobPartsMapperDataTable table = null; string filter = string.Format("LocationID = {0}", locationIdParam); DataRow[] selectRows = this.LocationJobPartsMapper.Select(filter, "JobID"); if (null != selectRows && 0 != selectRows.Length) { table = new LocationJobPartsMapperDataTable(); foreach (DataRow row in selectRows) { table.ImportRow(row); } } return table; }