Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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));
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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));
        }