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