Exemplo n.º 1
0
 public OtherDocumentEditViewModel(OtherDocument otherDocument)
 {
     Id          = otherDocument.Id;
     Deleted     = otherDocument.Deleted;
     Name        = otherDocument.Name;
     TestName    = otherDocument.TestName;
     Payments    = otherDocument.Payments.Select(w => new OtherDocumentPaymentEditViewModel(w)).ToList();
     Items       = otherDocument.Items.Select(w => new OtherDocumentItemEditViewModel(w)).ToList();
     Attachments = otherDocument.Attachments.Select(w => new AttachmentEditViewModel(w)).ToList();
 }
        public static object ToPublishFormat(this OtherDocument document, IPublishData publishData)
        {
            var s = (OtherDocumentPublishData)publishData;

            return(document + s.SomeExtraData);
        }