Exemple #1
0
        public async Task <Models.Action> UpdateCosmosAsync(string action, Guid actionId)
        {
            if (action == null)
            {
                return(null);
            }

            var response = await _documentDbProvider.UpdateActionAsync(action, actionId);

            var responseStatusCode = response?.StatusCode;

            return(responseStatusCode == HttpStatusCode.OK ? (dynamic)response.Resource : null);
        }