Esempio n. 1
0
        public ActionResult Index()
        {
            cntMongo            cnt = new cntMongo();
            List <entTweetView> lst = cnt.GetTopFiveTweetsOrderedByRetweets();

            return(View(lst));
        }
        public List <entTweetView> GetTopFiveTweetsOrderedByFavorites()
        {
            cntMongo            mongo     = new cntMongo();
            List <entTweetView> lstTweets = mongo.GetTopFiveTweetsOrderedByFavorites();

            return(lstTweets);
        }
        public List <Status> GetTweets()
        {
            TwitterAccess srch = new TwitterAccess();

            List <Status> AllTweets = srch.ReadTweets();
            cntMongo      m         = new cntMongo();

            m.InsertTweets(AllTweets);
            return(AllTweets);
        }
        // GET api/values
        public List <Status> Get()
        {
            TwitterAccess srch  = new TwitterAccess();
            cntMongo      mongo = new cntMongo();

            List <Status> tweets = srch.ReadTweets();

            mongo.InsertTweets(tweets);
            return(tweets);
        }