public async Task <Models.Customer> UpdateCosmosAsync(string customerJson, Guid customerId) { if (customerJson == null) { return(null); } var response = await _documentDbProvider.UpdateCustomerAsync(customerJson, customerId); var responseStatusCode = response?.StatusCode; return(responseStatusCode == HttpStatusCode.OK ? (dynamic)response.Resource : null); }