| | |
| | | return vmos; |
| | | } |
| | | |
| | | //vmo to add dto |
| | | internal static AddTransferRevitFileInput Vmo2AddDto(HStation.Vmo.TransferRevitFileVmo vmo) |
| | | { |
| | | if (vmo == null) |
| | | { |
| | | return default; |
| | | } |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.TransferRevitFileVmo, AddTransferRevitFileInput>() |
| | | ).CreateMapper(); |
| | | var dto = mapper.Map<HStation.Vmo.TransferRevitFileVmo, AddTransferRevitFileInput>(vmo); |
| | | return dto; |
| | | } |
| | | |
| | | |
| | | |
| | | |
| | | //vmo to add dtos |
| | | internal static List<AddTransferRevitFileInput> Vmo2AddDtos(List<HStation.Vmo.TransferRevitFileVmo> vmoList) |
| | | { |
| | | if (vmoList == null || vmoList.Count < 1) |
| | | { |
| | | return default; |
| | | } |
| | | var mapper = new MapperConfiguration(cfg => cfg.CreateMap<HStation.Vmo.TransferRevitFileVmo, AddTransferRevitFileInput>() |
| | | ).CreateMapper(); |
| | | var dtoList = mapper.Map<List<HStation.Vmo.TransferRevitFileVmo>, List<AddTransferRevitFileInput>>(vmoList); |
| | | return dtoList; |
| | | } |
| | | } |
| | | } |
| | | } |