The model item passed into the dictionary is of type 'Castle.Proxies.HelloWorldPageProxy', but this dictionary requires a model item of type 'DxcAlloy.Models.ViewModels.IPageViewModel`1[DxcAlloy.Models.Pages.SitePageData]'.
i am trying to add a hello world page to alloy, but get he above error when i hit: http://localhost:60746/en/helloworld
Controllers/HelloWorldPageController.cs
namespace DxcAlloy.Controllers
{
public class HelloWorldPageController:PageController<HelloWorldPage>
{
public ActionResult Index(HelloWorldPage currentPage)
{
return View(currentPage);
}
}
}
Models/Pages/HelloWorldPage.cs:
namespace DxcAlloy.Models.Pages
{
[ContentType(DisplayName = "HelloWorldPage", GUID = "5e4176f9-613d-4c9e-9c85-37dd1d1d70d9", Description = "Hello World")]
public class HelloWorldPage : PageData
{
[Display(
GroupName = SystemTabNames.Content,
Order = 10)]
public virtual ContentArea ItemLiistContentArea { get; set; }
}
}
Views/HelloWorldPage/index.cshtml
<div>
Hello!</div>
Any ideas?