我已经在 sitecore 8.1 MVC 中实现了控制器渲染。我在 Index 方法中收到以下错误:
错误:字典中不存在给定的键
代码:
{
var context = new SitecoreContext();
var Model = context.GetCurrentItem<BasePage>(); //Error comes here
return View(Model);
我错过了任何玻璃映射器文件吗?有什么建议么?
我已经在 sitecore 8.1 MVC 中实现了控制器渲染。我在 Index 方法中收到以下错误:
错误:字典中不存在给定的键
代码:
{
var context = new SitecoreContext();
var Model = context.GetCurrentItem<BasePage>(); //Error comes here
return View(Model);
我错过了任何玻璃映射器文件吗?有什么建议么?