public DeleteAsync ( string id ) : Task |
||
id | string | Id of the comment. |
Результат | Task |
public async Task<bool> DeleteAsync(string id)
{
id.ThrowIfNullOrWhiteSpace("id");
BoxRequest request = new BoxRequest(_config.CommentsEndpointUri, id)
.Method(RequestMethod.Delete);
IBoxResponse<BoxComment> response = await ToResponseAsync<BoxComment>(request).ConfigureAwait(false);
return response.Status == ResponseStatus.Success;
}
}