// GET api/<controller>/5 public HttpResponseMessage Get(int id) { GraphRepository repo = new GraphRepository(); string cypher = string.Format("MATCH (w:World)<-[parent*]-(s:Shape)-[edge*]->(p) where ID(w) = {0} RETURN w,s,p,edge,parent", id); var response = repo.Get(cypher); return(Request.CreateResponse(HttpStatusCode.OK, response, "application/json")); }
public Graph GetGraph(long id) { return(_graphRepository.Get(id)); }