public static Task <Attachment> GetAttachmentAsync(this FreeAgentClient client, Attachment attachment) { var id = client.ExtractId(attachment); return(client.GetAttachmentAsync(id)); }
public static Task <Attachment> GetAttachmentAsync(this FreeAgentClient client, Uri url) { var id = url.GetId(); return(client.GetAttachmentAsync(id)); }