mirror of
https://github.com/OrchardCMS/Orchard.git
synced 2026-02-09 09:16:41 +08:00
--HG-- extra : convert_revision : svn%3A5ff7c347-ad56-4c35-b696-ccb81de16e03/trunk%4041918
21 lines
794 B
C#
21 lines
794 B
C#
using System.Web.Mvc;
|
|
|
|
namespace Orchard.Blogs.Extensions {
|
|
public static class UrlHelperExtensions {
|
|
public static string Blogs(this UrlHelper urlHelper) {
|
|
return urlHelper.Action("List", "Blog", new {area = "Orchard.Blogs"});
|
|
}
|
|
|
|
public static string Blog(this UrlHelper urlHelper, string blogSlug) {
|
|
return urlHelper.Action("Item", "Blog", new {blogSlug, area = "Orchard.Blogs"});
|
|
}
|
|
|
|
public static string BlogEdit(this UrlHelper urlHelper, string blogSlug) {
|
|
return urlHelper.Action("Edit", "Blog", new {blogSlug, area = "Orchard.Blogs"});
|
|
}
|
|
|
|
public static string BlogPost(this UrlHelper urlHelper, string blogSlug, string postSlug) {
|
|
return "#";
|
|
}
|
|
}
|
|
} |