I am unable to pull any model data on a new page. It should look like this:
Thanks for your purchase! Here is your new license key:
123xyz
Instead, I just get this:
<table width="100%" cellspacing="2" cellpadding="1" border="0">
<tbody>
<tr>
<td colspan="2">
<p>
Thank you for your purchase! Here is your new license key:</p>
</td>
</tr>
<tr>
<td colspan="2">
</td>
</tr>
</tbody>
</table>
My route works fine. Here is my code:
public class LicenseKeyGeneratorModel : BaseNopModel
{
[DisplayName("Order ID Query String")]
public string OrderIDQueryString { get; set; }
public string LicenseKey { get; set; }
}
LicenseInformation.cshtml
@{
Layout = "~/Views/Shared/_ColumnsTwo.cshtml";
}
@model Nop.Plugin.Misc.LicenseKeyGenerator.Model.LicenseKeyGeneratorModel
@using Nop.Web.Framework;
@using (Html.BeginForm())
{
<table width="100%" cellspacing="2" cellpadding="1" border="0">
<tr>
<td colspan="2">
<p>
TEST Thank you for your purchase! Here is your new license key:</p>
</td>
</tr>
<tr>
<td colspan="2">
@model.LicenseKey
</td>
</tr>
</table>
}
public class LicenseKeyFrontEndController : BaseNopController
{
ILicenseKeyProcessor licenseKeyProcessor;
public LicenseKeyFrontEndController(ILicenseKeyProcessor licenseKeyProcessor)
{
this.licenseKeyProcessor = licenseKeyProcessor;
}
public ActionResult Configure()
{
var model = new LicenseKeyGeneratorModel();
model.LicenseKey = "xyz123";
return View("Nop.Plugin.Misc.LicenseKeyGenerator.Views.LicenseKeyGenerator.LicenseInformation", model);
}
}
Any ideas what I am doing wrong?