//TODO 2.1.4.a Finally, we will add delete functionality. public async Task <HttpStatusCode> DeleteAccount(string id, string userName) { try { //TODO 2.1.4.b To delete a document, we are going to need the id of the document and the username of the account. _ = await client.DeleteDocumentAsync(dbHandler.GetDocumentUri(id), new RequestOptions() { PartitionKey = new PartitionKey(userName) //TODO 2.1.4.c Specify the partition key value in the request options. }); //TODO 2.1.4.d Then return an OK response code if it succeeds. return(HttpStatusCode.OK); } catch (DocumentClientException e) { //TODO 2.1.4.e Otherwise return the code from Cosmos. return((HttpStatusCode)e.StatusCode); } }