public async Task <Models.ActionPlan> CreateAsync(Models.ActionPlan actionPlan) { if (actionPlan == null) { return(null); } actionPlan.SetDefaultValues(); var documentDbProvider = new DocumentDBProvider(); var response = await documentDbProvider.CreateActionPlanAsync(actionPlan); return(response.StatusCode == HttpStatusCode.Created ? (dynamic)response.Resource : null); }