public int Process(RemoteSession session) { XDocument response = session.PostRequest( "/do/Reply/", new NameValueCollection { { "parent", this.parentPostId.ToString() }, { "title", this.title }, { "layerId", this.layerId.ToString() }, { "Body", this.bodyUbb }, } ); return int.Parse(response.Root.Element("post").GetTextValue("id")); }