public CrayonApiClientResult <SubscriptionDetailed> Update(string token, SubscriptionDetailed subscription) { Guard.NotNull(subscription, nameof(subscription)); var uri = $"/api/v1/subscriptions/{subscription.Id}"; return(_client.Put <SubscriptionDetailed>(token, uri, subscription)); }
public CrayonApiClientResult <SubscriptionDetailed> Create(string token, SubscriptionDetailed subscription) { var uri = "/api/v1/subscriptions/"; return(_client.Post <SubscriptionDetailed>(token, uri, subscription)); }