public void Create(DtoTweet entity) { var deger = Mapper.Map <Tweet>(entity); unit.Tweetterrepo.Create(deger); unit.Save(); }
public DtoTweet AddTweet([FromBody] DtoTweet tweetDTO) { DtoTweet tweetObject = new DtoTweet(); tweetObject = BsTweet.AddTweet(tweetDTO.UserDetailId, tweetDTO.TweetContent); return(tweetObject); }
public bool UndoReaction(DtoTweet actionTweet) { return(BsUserReaction.UndoReaction(actionTweet)); }
public bool DislikeTweet(DtoTweet disLikeTweet) { return(BsUserReaction.DisLike(disLikeTweet)); }
public bool LikeTweet(DtoTweet likeTweet) { return(BsUserReaction.Like(likeTweet)); }
public bool RemoveHashTag(DtoTweet removeHash) { return(BsHashTag.RemoveHashTag(removeHash)); }
public bool AddHashTag(DtoTweet addHash) { return(BsHashTag.AddHashTag(addHash)); }
public DtoTweet EditTweet(DtoTweet tweetObj1, DtoTweet tweetObj2) { return(BsTweet.EditTweet(tweetObj1, tweetObj2)); }
public bool DeleteTweet(DtoTweet tweetObj) { return(BsTweet.DeleteTweet(tweetObj)); }
public void Delete(DtoTweet entity) { throw new NotImplementedException(); }
public IActionResult Posttweet(DtoTweet entity) { entity.Createddate = DateTime.Now; tweet.Create(entity); return(Json(true)); }