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)); }
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)); }