Ejemplo n.º 1
0
 /// <summary>
 /// Update add-on
 /// </summary>
 /// <param name="id">add-on id</param>
 /// <param name="addOn">add-on to update</param>
 public Task <PlanAddOn> UpdateAddOnAsync(string id, PlanAddOn addOn)
 {
     return(this.SendAsync <PlanAddOn, PlanAddOn>(
                this.CreateRequestUri(string.Format(CultureInfo.InvariantCulture, RelativePaths.AddOn, id)),
                HttpMethod.Put,
                addOn));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create add-on
 /// </summary>
 /// <param name="addOn">add-on to create</param>
 public Task <PlanAddOn> CreateAddOnAsync(PlanAddOn addOn)
 {
     return(this.SendAsync <PlanAddOn, PlanAddOn>(this.CreateRequestUri(RelativePaths.AddOns), HttpMethod.Post, addOn));
 }