Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion Xml2CSharp.Web/Home.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,15 @@ 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() }];
};
}

}

public class ConvertResponse
{
public string XmlInput { get; set; }
public string CSharpCode { get; set; }
}
}
5 changes: 4 additions & 1 deletion Xml2CSharp.Web/result.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
<textarea name="xml" class="form-control" rows="20">@Model.CSharpCode</textarea>
</div>

<h2>Xml</h2>


<div class="form-group">
<textarea name="xmlInput" class="form-control" rows="20">@Model.XmlInput</textarea>
</div>