예제 #1
0
        public void Create(DtoTweet entity)
        {
            var deger = Mapper.Map <Tweet>(entity);

            unit.Tweetterrepo.Create(deger);
            unit.Save();
        }
예제 #2
0
        public DtoTweet AddTweet([FromBody] DtoTweet tweetDTO)
        {
            DtoTweet tweetObject = new DtoTweet();

            tweetObject = BsTweet.AddTweet(tweetDTO.UserDetailId, tweetDTO.TweetContent);

            return(tweetObject);
        }
예제 #3
0
 public bool UndoReaction(DtoTweet actionTweet)
 {
     return(BsUserReaction.UndoReaction(actionTweet));
 }
예제 #4
0
 public bool DislikeTweet(DtoTweet disLikeTweet)
 {
     return(BsUserReaction.DisLike(disLikeTweet));
 }
예제 #5
0
 public bool LikeTweet(DtoTweet likeTweet)
 {
     return(BsUserReaction.Like(likeTweet));
 }
예제 #6
0
 public bool RemoveHashTag(DtoTweet removeHash)
 {
     return(BsHashTag.RemoveHashTag(removeHash));
 }
예제 #7
0
 public bool AddHashTag(DtoTweet addHash)
 {
     return(BsHashTag.AddHashTag(addHash));
 }
예제 #8
0
 public DtoTweet EditTweet(DtoTweet tweetObj1, DtoTweet tweetObj2)
 {
     return(BsTweet.EditTweet(tweetObj1, tweetObj2));
 }
예제 #9
0
 public bool DeleteTweet(DtoTweet tweetObj)
 {
     return(BsTweet.DeleteTweet(tweetObj));
 }
예제 #10
0
 public void Delete(DtoTweet entity)
 {
     throw new NotImplementedException();
 }
예제 #11
0
 public IActionResult Posttweet(DtoTweet entity)
 {
     entity.Createddate = DateTime.Now;
     tweet.Create(entity);
     return(Json(true));
 }