Exemple #1
0
 public WorkFactory(Worker worker, DataEntity dataEntity)
 {
     _worker            = worker;
     _dataEntity        = dataEntity;
     _workinglist       = new List <working>();
     _distinationEntity = new DistinationEntity();
 }
Exemple #2
0
 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());
 }