コード例 #1
0
ファイル: Repository.cs プロジェクト: faizanamjad/Oogi2
        /// <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);
        }
コード例 #2
0
ファイル: Repository.cs プロジェクト: mdg215199/Oogi2
 /// <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));
 }