public static TweetDto.DtoTweet EditTweet(TweetDto.DtoTweet beforeedit, TweetDto.DtoTweet afteredit) { if (BsHashTag.RemoveHashTag(beforeedit)) { if (BsHashTag.AddHashTag(afteredit)) { return(TweetDll.EditTweet(afteredit)); } else { return(null); } } else { return(null); } }
public static bool DeleteTweet(TweetDto.DtoTweet tweet) { if (BsHashTag.RemoveHashTag(tweet)) { if (BsUserReaction.UndoReaction(tweet)) { return(TweetDll.DeleteTweet(tweet)); } else { return(false); } } else { return(false); } }