Пример #1
0
        public virtual quoteDto.QuoteAttachment ToQuoteAttachmentDto(Attachment attachment)
        {
            var result = new quoteDto.QuoteAttachment();

            result.InjectFrom <NullableAndEnumValueInjecter>(attachment);
            return(result);
        }
Пример #2
0
        public virtual quoteDto.QuoteAttachment ToQuoteAttachmentDto(Attachment attachment)
        {
            var result = new quoteDto.QuoteAttachment
            {
                CreatedBy    = attachment.CreatedBy,
                CreatedDate  = attachment.CreatedDate,
                Id           = attachment.Id,
                MimeType     = attachment.MimeType,
                ModifiedBy   = attachment.ModifiedBy,
                ModifiedDate = attachment.ModifiedDate,
                Name         = attachment.Name,
                Size         = attachment.Size,
                Url          = attachment.Url
            };

            return(result);
        }
Пример #3
0
        public virtual Attachment ToAttachment(quoteDto.QuoteAttachment attachmentDto)
        {
            var result = new Attachment
            {
                CreatedBy    = attachmentDto.CreatedBy,
                CreatedDate  = attachmentDto.CreatedDate,
                Id           = attachmentDto.Id,
                MimeType     = attachmentDto.MimeType,
                ModifiedBy   = attachmentDto.ModifiedBy,
                ModifiedDate = attachmentDto.ModifiedDate,
                Name         = attachmentDto.Name,
                Size         = attachmentDto.Size,
                Url          = attachmentDto.Url
            };

            return(result);
        }
Пример #4
0
 public static Attachment ToAttachment(this quoteDto.QuoteAttachment attachmentDto)
 {
     return(QuoteConverterInstance.ToAttachment(attachmentDto));
 }