public static Rest.Document ToRest(this DraftTenderDocument source) { return(source == null ? null : new Rest.Document(source) { RelatedItem = source.RelatedId }); }
public static DraftTenderDocumentDTO ToDTO(this DraftTenderDocument source) { return(source == null ? null : new DraftTenderDocumentDTO(source) { TenderGuid = source.Tender.Guid, RelatedItem = source.RelatedId, Data = source.Data }); }