Пример #1
0
        public async Task <Models.ActionPlan> UpdateCosmosAsync(string actionPlanJson, Guid actionPlanId)
        {
            if (string.IsNullOrEmpty(actionPlanJson))
            {
                return(null);
            }

            var response = await _documentDbProvider.UpdateActionPlanAsync(actionPlanJson, actionPlanId);

            var responseStatusCode = response?.StatusCode;

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