public void Delete(long id) { try { Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler(); handler.DeleteUser(id); } catch (Exception) { } }
public void Post([FromBody] Movie value) { try { Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler(); handler.CreateMovie(value); } catch (Exception) { } }
public ActionResult <IEnumerable <MovieRecommendation> > Get(long id) { try { Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler(); return(handler.GetRecommendationOnMovie(id)); } catch (Exception) { } return(null); }
public ActionResult <User> Get(long id) { try { Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler(); return(handler.GetUser(id)); } catch (Exception) { } return(null); }
public ActionResult <IEnumerable <User> > Get() { try { Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler(); return(handler.GetAllUsers()); } catch (Exception) { } return(null); }
public ActionResult <Movie> Get(long id) { Movie result = null; try { Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler(); result = handler.GetMovie(id); } catch (Exception) { } return(result); }