internal static List<CNGDto> vidalToDtoList(ServiceCNG.ArrayOfCommonNameGroup wsCNGs) { List<CNGDto> cngs = new List<CNGDto>(); foreach (ServiceCNG.commonNameGroup cng in wsCNGs) { cngs.Add(vidalToDto(cng)); } return cngs; }
internal static CNGDto vidalToDto(ServiceCNG.commonNameGroup wsCNG) { CNGDto dto = new CNGDto(); dto.Id = wsCNG.id; dto.MaxUcdRangePrice = wsCNG.maxUcdRangePrice; dto.MinUcdRangePrice = wsCNG.minUcdRangePrice; dto.Name = wsCNG.name; return dto; }