public static Rest.Feature ToRest(this DraftFeature source) { return(source == null ? null : new Rest.Feature(source) { Values = source.Values?.Select(x => x.ToRest()).ToArray() }); }
public static FeatureDTO ToDTO(this DraftFeature source) { return(source == null ? null : new FeatureDTO(source) { TenderGuid = source.Tender.Guid, Values = source.Values?.Select(x => x.ToDTO()).ToList() }); }