public ImportJobDomainEntity AdaptItemReport(DataRow rw, DataTable dt) { ImportJobDomainEntity results = new ImportJobDomainEntity(); results.ApplicationSubDomain = SafeHelper.GetSafestring(rw["AppicationSubDomain"]); results.MatchRefreshInProgress = SafeHelper.GetSafestring(rw["MatchRefreshInProgress"]); results.MatchRefreshReady = SafeHelper.GetSafestring(rw["MatchRefreshReady"]); results.MatchRefreshFailed = SafeHelper.GetSafestring(rw["MatchRefreshFailed"]); return(results); }
public List <ImportJobDomainEntity> AdaptLists(DataTable dt) { List <ImportJobDomainEntity> results = new List <ImportJobDomainEntity>(); foreach (DataRow rw in dt.Rows) { ImportJobDomainEntity clientlist = new ImportJobDomainEntity(); clientlist = AdaptItemReport(rw, dt); results.Add(clientlist); } return(results); }