Ejemplo n.º 1
0
        public async Task <Models.Outcomes> CreateAsync(Models.Outcomes outcomes)
        {
            if (outcomes == null)
            {
                return(null);
            }

            outcomes.SetDefaultValues();

            var documentDbProvider = new DocumentDBProvider();

            var response = await documentDbProvider.CreateOutcomesAsync(outcomes);

            return(response.StatusCode == HttpStatusCode.Created ? (dynamic)response.Resource : null);
        }