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

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

            return(result);
        }