mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2025-09-24 13:33:34 +08:00
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:
@@ -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();
|
||||
|
Reference in New Issue
Block a user