public WorkFactory(Worker worker, DataEntity dataEntity) { _worker = worker; _dataEntity = dataEntity; _workinglist = new List <working>(); _distinationEntity = new DistinationEntity(); }
public void GetResult(List <DataEntityItem> filterData, DistinationEntity distinationEntity) { if (distinationEntity.DistinationDataList == null) { distinationEntity.DistinationDataList = new List <DistinationEntityItem>(); } distinationEntity.DistinationDataList.AddRange(filterData.Select(x => new DistinationEntityItem { DistinationName = x.Name, DistinationCode = x.Code }).ToList()); }