Last active
November 13, 2020 07:50
-
-
Save PradeepLoganathan/6551ed7037db8b9dba87accff7834dc4 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public async Task DeleteCustomer(Customer customer) | |
{ | |
try | |
{ | |
await this._cosmosDbContext.CustomerContainer.DeleteItemAsync<Customer>(customer.customerId, new PartitionKey(customer.customerId) ); | |
} | |
catch (CosmosException ex) | |
{ | |
Console.WriteLine("Exception occured in DeleteCustomer: Message body is {0}.\n", ex.Message); | |
throw; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment