Some work on getting routing cleaned up for Orchard.Blogs

--HG--
branch : dev
This commit is contained in:
Nathan Heskew
2010-11-13 11:15:38 -08:00
parent e56c682586
commit 15efc07484
16 changed files with 133 additions and 91 deletions

View File

@@ -117,8 +117,9 @@ namespace Orchard.Blogs.Services {
var array = new XRpcArray();
foreach (var blog in _blogService.Get()) {
var thisBlog = blog;
array.Add(new XRpcStruct()
.Set("url", urlHelper.AbsoluteAction(() => urlHelper.Blog(blog.Slug)))
.Set("url", urlHelper.AbsoluteAction(() => urlHelper.Blog(thisBlog)))
.Set("blogid", blog.Id)
.Set("blogName", blog.Name));
}