/// <summary> /// Adds the specified Space to the collection via POST. /// </summary> /// <param name="space">The Space to add.</param> /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param> /// <returns>The created Space.</returns> public System.Threading.Tasks.Task <Space> AddAsync(Space space, CancellationToken cancellationToken) { this.ContentType = "application/json"; this.Method = "POST"; return(this.SendAsync <Space>(space, cancellationToken)); }
/// <summary> /// Adds the specified Space to the collection via POST. /// </summary> /// <param name="space">The Space to add.</param> /// <returns>The created Space.</returns> public System.Threading.Tasks.Task <Space> AddAsync(Space space) { return(this.AddAsync(space, CancellationToken.None)); }