public async Task <IActionResult> GetTweetsByHashTag(string hashtag)
        {
            var tweets = _twitterService.GetTweetListByHashtag(hashtag);

            var x = _twitterService.GetSentimentAnalysisForListOfTweetWithoutComments(tweets);

            return(Ok(x));
        }
        public IActionResult GetTweetsByHashTag(string hashtag = null)
        {
            var tweets = _twitterService.GetTweetListByHashtag(hashtag);

            var isInDb = _queryDispatcher.Execute <IsInHashtagHistoryQuery, IsInHashtagHistoryQueryResult>(new IsInHashtagHistoryQuery(hashtag));

            var sentimentAnalysisLists = _twitterService.GetSentimentAnalysisForBubbleChart(tweets);

            var command = new AddHashtagHistoryCommand(new HashtagHistoryModel()
            {
                HashtagValue             = hashtag,
                NegativeSentimentCounter = sentimentAnalysisLists.BubbleChartNegative.Count,
                PositiveSentimentCounter = sentimentAnalysisLists.BubbleChartPositive.Count,
                NeutralSentimentCounter  = sentimentAnalysisLists.BubbleChartNeutral.Count
            });

            _commandDispatcher.Execute(command);

            sentimentAnalysisLists.IsInHashtagHistory = isInDb.IsInHashtagHistory;
            return(Ok(sentimentAnalysisLists));
        }