public async Task <ResourceResponse <Document> > UpdateAddressAsync(string addressJson, Guid addressId) { if (string.IsNullOrEmpty(addressJson)) { return(null); } var documentUri = DocumentDBHelper.CreateAddressDocumentUri(addressId); var client = DocumentDBClient.CreateDocumentClient(); if (client == null) { return(null); } var addressDocumentJObject = JObject.Parse(addressJson); var response = await client.ReplaceDocumentAsync(documentUri, addressDocumentJObject); return(response); }