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 }) })); }
public IHttpActionResult SearchActorByName(string actorName) { var data = Neo4jDriver.SearchActorByName(actorName); return(Ok(data.Select(c => new { movie = c }))); }