public void DismissDisLike(string UserNickname, ObjectId postId)
 {
     try
     {
         repository.DismissDisLike(UserNickname, postId);
     }
     catch
     {
     }
 }
 private void Dislike(object sender, RoutedEventArgs e)
 {
     if (tempDislike == false)
     {
         btnDislike.Background = Brushes.Red;
         tempDislike           = true;
         postRepository.AddDislike(services.NickNameRead(), currentPost.Id);
         txtDislike.Text = postServices.GetDislikes(currentPost.Id).ToString();
     }
     else
     {
         Color           color = (Color)ColorConverter.ConvertFromString("#0288d1");
         SolidColorBrush brush = new SolidColorBrush(color);
         btnDislike.Background = brush;
         tempDislike           = false;
         postRepository.DismissDisLike(services.NickNameRead(), currentPost.Id);
         txtDislike.Text = postServices.GetDislikes(currentPost.Id).ToString();
     }
 }