public ForumTopicPostAttachmentWrapper(Attachment attachment) { ContentType = attachment.ContentType.ToString(); Updated = Created = (ApiDateTime)attachment.CreateDate; Name = attachment.Name; Size = attachment.Size; Path = attachment.OffsetPhysicalPath;//TODO: add through datastorage }
public string GetAttachmentWebPath(Attachment attachment) { return GetStore().GetUri(attachment.OffsetPhysicalPath).ToString(); }