public Task PostComment(string postId, string content)
        {
            XmlRpcPortable.XmlRpcClient client = new XmlRpcPortable.XmlRpcClient(blogUri);

            var newComment = new XmlRpcStruct();
            newComment.StructValue.Add("content", new XmlRpcString(content));

            return client.CallRpc("wp.newComment", new List<XmlRpcValue>()
            {
                new XmlRpcInt(0),
                new XmlRpcString(appSettings.Login),
                new XmlRpcString(appSettings.Password),
                new XmlRpcString(postId),
                newComment
            });
        }
        public async Task<IEnumerable<WordPressComment>> GetCommentsAsync(int postId, int blogId, string userName, string password)
        {
            var parms = new List<XmlRpcValue>();

            parms.Add(new XmlRpcInt(blogId));
            parms.Add(new XmlRpcString(userName));
            parms.Add(new XmlRpcString(password));

            var filter = new XmlRpcStruct();
            filter.StructValue.Add("post_id", new XmlRpcInt(postId));
            parms.Add(filter);

            try
            {
                var results = await _client.CallRpc("wp.getComments", parms);

                if (results != null)
                {
                    if (results.Value is XmlRpcArray)
                    {
                        return (IEnumerable<WordPressComment>)XmlRpcConverter.MapArrayTo(results.Value as XmlRpcArray, typeof(WordPressComment));
//                        return (IEnumerable<WordPressComment>)XmlRpcConverter.MapTo<>(results.Value);
                    }
                }
            }
            catch (XmlRpcException ex)
            {

            }
            return null;

        }