Beispiel #1
0
        public IHttpActionResult GetActorSuggestions(string query)
        {
            var data = Neo4jDriver.SearchActorByName(query);

            return(Ok(new
            {
                suggestions = data.Select(a => new
                {
                    data = a.name,
                    value = a.name,
                    id = a.id
                })
            }));
        }
Beispiel #2
0
        public IHttpActionResult SearchActorByName(string actorName)
        {
            var data = Neo4jDriver.SearchActorByName(actorName);

            return(Ok(data.Select(c => new { movie = c })));
        }