/// <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); }
/// <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); }