Ejemplo n.º 1
0
 internal static ProductDto vidalToDto(ServiceProduct.product wsProduct)
 {
     ProductDto dto = new ProductDto();
     dto.Id = wsProduct.id;
     dto.Cis = wsProduct.cis;
     dto.CommonNameGroupId = wsProduct.commonNameGroupId;
     dto.DrugInSport = wsProduct.drugInSport;
     dto.Exceptional = wsProduct.exceptional;
     dto.Flavor = wsProduct.flavor;
     dto.ListValue = wsProduct.listValue;
     dto.MaxUcdRangePrice = wsProduct.maxUcdRangePrice;
     dto.Midwife = wsProduct.midwife;
     dto.MinUcdRangePrice = wsProduct.minUcdRangePrice;
     dto.Name = wsProduct.name;
     dto.PerVolume = wsProduct.perVolume;
     dto.PerVolumeUnit = wsProduct.perVolumeUnit;
     dto.RefundingRateValue = wsProduct.refundingRateValue;
     dto.SafetyAlert = wsProduct.safetyAlert;
     dto.Vigilance = VigilanceDtoHelper.vidalToDto(wsProduct.vigilance);
     dto.GenericType = GenericTypeDtoHelper.vidalToDto(wsProduct.genericType);
     return dto;
 }
Ejemplo n.º 2
0
 internal static ProductDto vidalToDto(VidalAPI.Domain.Product nativeProduct)
 {
     ProductDto dto = new ProductDto();
     dto.Id = nativeProduct.Id;
     dto.Cis = nativeProduct.Cis;
     dto.CommonNameGroupId = nativeProduct.CommonNameGroupId;
     dto.DrugInSport = nativeProduct.DrugInSport;
     dto.Exceptional = nativeProduct.Exceptional;
     dto.Flavor = nativeProduct.Flavor;
     dto.ListValue = nativeProduct.ListValue;
     dto.MaxUcdRangePrice = nativeProduct.MaxUcdRangePrice;
     dto.Midwife = nativeProduct.Midwife;
     dto.MinUcdRangePrice = nativeProduct.MinUcdRangePrice;
     dto.Name = nativeProduct.Name;
     dto.PerVolume = nativeProduct.PerVolume;
     dto.PerVolumeUnit = nativeProduct.PerVolumeUnit;
     dto.RefundingRateValue = nativeProduct.RefundingRateValue;
     dto.SafetyAlert = nativeProduct.SafetyAlert;
     dto.Vigilance = VigilanceDtoHelper.vidalToDto(nativeProduct.Vigilance);
     dto.GenericType = GenericTypeDtoHelper.vidalToDto(nativeProduct.GenericType);
     return dto;
 }