/// <summary> /// Delete the specified id. /// </summary> /// <returns><c>true</c> if document has been deleted; otherwise, <c>false</c>.</returns> /// <param name="id">The id of the document.</param> public async Task <bool> DeleteAsync(string id) { var response = await _repository.DeleteDocumentAsync(id).ConfigureAwait(false); return(response); }
/// <summary> /// Delete the specified id. /// </summary> /// <param name="id">The id of the document.</param> /// <param name="requestOptions">Request options.</param> /// <returns><c>true</c> if document has been deleted; otherwise, <c>false</c>.</returns> public Task <bool> DeleteAsync(string id, RequestOptions requestOptions = null) { return(_repository.DeleteDocumentAsync(id, requestOptions)); }