Medium Trust: Fixing aditional dynamic invocations of View method.

--HG--
branch : dev
This commit is contained in:
Andre Rodrigues
2010-11-18 11:21:43 -08:00
parent 8956dcb5f5
commit 42fbe44c6b
9 changed files with 40 additions and 40 deletions

View File

@@ -62,12 +62,12 @@ namespace Orchard.Core.Containers.Controllers {
var list = Shape.List();
list.AddRange(pageOfItems.Select(item => _contentManager.BuildDisplay(item, "Summary")));
var viewModel = Shape.ViewModel()
dynamic viewModel = Shape.ViewModel()
.ContentItems(list)
.Pager(pagerShape)
.ShowPager(container.As<ContainerPart>().Record.Paginated);
return View(viewModel);
return View((object)viewModel);
}
}
}