Ejemplo n.º 1
0
 /// <summary>
 /// Update plan
 /// </summary>
 /// <param name="id">plan id</param>
 /// <param name="plan">plan to update</param>
 public Task<Plan> UpdatePlanAsync(string id, Plan plan)
 {
     return this.SendAsync<Plan, Plan>(
         this.CreateRequestUri(string.Format(CultureInfo.InvariantCulture, RelativePaths.Plan, id)), 
         HttpMethod.Put, 
         plan);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Create plan
 /// </summary>
 /// <param name="plan">plan to create</param>
 public Task<Plan> CreatePlanAsync(Plan plan)
 {
     return this.SendAsync<Plan, Plan>(this.CreateRequestUri(RelativePaths.Plans), HttpMethod.Post, plan);
 }