Beispiel #1
0
 public static TweetDTO EditTweet(TweetDTO beforeedit, TweetDTO afteredit)
 {
     if (HashTagBL.RemoveHashTag(beforeedit))
     {
         if (HashTagBL.AddHashTag(afteredit))
         {
             return(TWEETDataLinker.EditTweet(afteredit));
         }
         else
         {
             return(null);
         }
     }
     else
     {
         return(null);
     }
 }
Beispiel #2
0
 public static bool DeleteTweet(TweetDTO tweet)
 {
     if (HashTagBL.RemoveHashTag(tweet))
     {
         if (UserReactionBL.UndoResponse(tweet))
         {
             return(TWEETDataLinker.DeleteTweet(tweet));
         }
         else
         {
             return(false);
         }
     }
     else
     {
         return(false);
     }
 }