public virtual QuoteAttachment ToModel(QuoteAttachment target) { target.Id = Id; target.CreatedBy = CreatedBy; target.CreatedDate = CreatedDate; target.ModifiedBy = ModifiedBy; target.ModifiedDate = ModifiedDate; target.Url = Url; target.Name = Name; target.MimeType = MimeType; target.Size = Size; return(target); }
public virtual AttachmentEntity FromModel(QuoteAttachment item) { if (item == null) { throw new ArgumentNullException(nameof(item)); } Id = item.Id; CreatedBy = item.CreatedBy; CreatedDate = item.CreatedDate; ModifiedBy = item.ModifiedBy; ModifiedDate = item.ModifiedDate; Url = item.Url; Name = item.Name; MimeType = item.MimeType; Size = item.Size; return(this); }