Some progress on converting Core.Contents

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-09-21 16:09:31 -07:00
parent 9c3dd779df
commit 17eade34db
11 changed files with 33 additions and 42 deletions

View File

@@ -198,7 +198,13 @@ namespace Orchard.Core.Contents.Controllers {
}
ActionResult CreatableTypeList() {
return View(Shape.Model(Types: GetCreatableTypes()));
var list = Shape.List();
list.AddRange(GetCreatableTypes());
var viewModel = Shape.ViewModel()
.ContentTypes(list);
return View("CreatableTypeList", viewModel);
}
public ActionResult Create(string id) {