Exemplo n.º 1
0
 public void Delete(long id)
 {
     try
     {
         Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler();
         handler.DeleteUser(id);
     }
     catch (Exception)
     {
     }
 }
Exemplo n.º 2
0
 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);
 }
Exemplo n.º 4
0
 public ActionResult <User> Get(long id)
 {
     try
     {
         Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler();
         return(handler.GetUser(id));
     }
     catch (Exception)
     {
     }
     return(null);
 }
Exemplo n.º 5
0
 public ActionResult <IEnumerable <User> > Get()
 {
     try
     {
         Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler();
         return(handler.GetAllUsers());
     }
     catch (Exception)
     {
     }
     return(null);
 }
Exemplo n.º 6
0
        public ActionResult <Movie> Get(long id)
        {
            Movie result = null;

            try
            {
                Neo4jDatabaseHandler handler = Neo4jHandler.GetHandler();
                result = handler.GetMovie(id);
            }
            catch (Exception)
            {
            }

            return(result);
        }