Exemple #1
0
        //function that communicated with DAL if dislike button is clicked
        public bool tweetDisLikeClicked(TweetLikeDislikeModel data)
        {
            TweetRepoLayer obj = new TweetRepoLayer();

            return(obj.tweetDisLikeClicked(data));
        }
Exemple #2
0
        //function that communicated with DAL to edit the tweet
        public bool editTweet(int id, TweetModel tweetdata)
        {
            TweetRepoLayer obj = new TweetRepoLayer();

            return(obj.editTweet(id, tweetdata));
        }
Exemple #3
0
        //function that communicated with DAL give the tweets
        public List <TweetViewModel> getTweetById(int id, string searchvalue)
        {
            TweetRepoLayer obj = new TweetRepoLayer();

            return(obj.getTweetById(id, searchvalue));
        }
Exemple #4
0
        //function that communicated with DAL to delete the tweet
        public void deleteTweet(int id, int tweetId)
        {
            TweetRepoLayer obj = new TweetRepoLayer();

            obj.deleteTweet(id, tweetId);
        }
Exemple #5
0
        //function that communicated with DAL to add a new twet by the user
        public bool postTweet(TweetModel tweetmodel)
        {
            TweetRepoLayer obj = new TweetRepoLayer();

            return(obj.postTweet(tweetmodel));
        }