コード例 #1
0
        public ActionResult <string> Get1(int learningplanid)
        {
            var results = client.client.Cypher
                          .Match("(LP:LearningPlan)")
                          .Where((LearningPlan LP) => LP.LearningPlanId == learningplanid)
                          .Return(LP => LP.As <LearningPlan>())
                          .Results;

            return(Ok(results));
        }
コード例 #2
0
        public async Task <IActionResult> GetLearningPlanById(int learningplanId)
        {
            var learningPlanResult = await client.client.Cypher
                                     .Match("(LP:LearningPlan)")
                                     .Where((LearningPlan LP) => LP.LearningPlanId == learningplanId)
                                     .Return(LP => LP.As <LearningPlan>())
                                     .ResultsAsync;

            return(Ok(learningPlanResult));
        }