Fixing up urls for blogs and setting up some initial services, controller actions, routes, etc for BlogPost.

--HG--
extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041606
This commit is contained in:
ErikPorter
2009-11-21 00:38:41 +00:00
parent 0ef4d4d7e4
commit b919cacbf7
13 changed files with 173 additions and 37 deletions

View File

@@ -16,8 +16,8 @@ namespace Orchard.Blogs.Controllers {
}
//TODO: (erikpo) Should think about moving the slug parameter and get call and null check up into a model binder or action filter
public ActionResult Item(string slug) {
Blog blog = _blogService.Get(slug);
public ActionResult Item(string blogSlug) {
Blog blog = _blogService.Get(blogSlug);
if (blog == null)
return new NotFoundResult();