diff --git a/Xml2CSharp.Web/Home.cs b/Xml2CSharp.Web/Home.cs index 771a847..4e19b25 100644 --- a/Xml2CSharp.Web/Home.cs +++ b/Xml2CSharp.Web/Home.cs @@ -22,7 +22,7 @@ public Home() var stringWriter = new StringWriter(); classInfoWriter.Write(stringWriter); - return View["result", new ConvertResponse { CSharpCode = stringWriter.ToString() }]; + return View["result", new ConvertResponse { XmlInput = xml, CSharpCode = stringWriter.ToString() }]; }; } @@ -30,6 +30,7 @@ public Home() public class ConvertResponse { + public string XmlInput { get; set; } public string CSharpCode { get; set; } } } \ No newline at end of file diff --git a/Xml2CSharp.Web/result.cshtml b/Xml2CSharp.Web/result.cshtml index 83ec739..523413e 100644 --- a/Xml2CSharp.Web/result.cshtml +++ b/Xml2CSharp.Web/result.cshtml @@ -8,5 +8,8 @@ +