Example #1
0
 public Boolean DeletePost(String postId, Boolean publish = false)
 {
     try {
         return(metaWeblogProvider.DeletePost(String.Empty, postId, _userName, Crypt.SecureStringToString(_password), publish));
     } catch (Exception e) {
         Utils.MsgBox("Error", e.Message, MessageBoxButton.OK, MessageBoxImage.Error);
     }
     return(false);
 }
 public bool DeletePost(string key, string postid, string username, string password, bool publish)
 {
     _logger.LogInformation($"MetaWeblog:DeletePost is called");
     return(_provider.DeletePost(key, postid, username, password, publish));
 }
 Boolean deletePost(Post post, Boolean publish = false)
 {
     return(_metaWeblogProvider.DeletePost(String.Empty, post.PostId, _userName, Crypt.SecureStringToString(_password), publish));
 }