C# Класс Daniel15.Web.Extensions.BlogUrlHelperExtensions

URL helpers for blog posts
Показать файл Открыть проект

Открытые методы

Метод Описание
BlogCategory ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category, int page = 1 ) : string

Gets the URL to the specified blog category post listing

BlogCategory ( this urlHelper, string routeType, string slug, string parentSlug, int page = 1 ) : string

Gets the URL to the specified blog category post listing

BlogCategoryFeed ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category ) : string

Gets the URL to the specified blog category RSS feed

BlogIndex ( this urlHelper, int page = 1 ) : string

Gets the URL to the index of the blog

BlogPost ( this urlHelper, PostModel post ) : string

Gets a URL to the specified blog post

BlogPostAbsolute ( this urlHelper, PostModel post ) : string

Gets an absolute URL to the specified blog post

BlogPostEdit ( this urlHelper, PostModel post ) : string

Gets a URL to edit the specified blog post

BlogTag ( this urlHelper, Daniel15.Data.Entities.Blog.TagModel tag, int page = 1 ) : string

Gets the URL to the specified blog tagged post listing

BlogTag ( this urlHelper, string slug, int page = 1 ) : string

Gets the URL to the specified blog tagged post listing

Описание методов

BlogCategory() публичный статический Метод

Gets the URL to the specified blog category post listing
public static BlogCategory ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category, int page = 1 ) : string
urlHelper this The URL helper
category Daniel15.Data.Entities.Blog.CategoryModel Category to link to
page int Page number to link to
Результат string

BlogCategory() публичный статический Метод

Gets the URL to the specified blog category post listing
public static BlogCategory ( this urlHelper, string routeType, string slug, string parentSlug, int page = 1 ) : string
urlHelper this The URL helper
routeType string Route type to link to (eg. "Category" or "CategoryFeed")
slug string Slug of the category
parentSlug string Slug of the parent
page int Page number to link to
Результат string

BlogCategoryFeed() публичный статический Метод

Gets the URL to the specified blog category RSS feed
public static BlogCategoryFeed ( this urlHelper, Daniel15.Data.Entities.Blog.CategoryModel category ) : string
urlHelper this The URL helper
category Daniel15.Data.Entities.Blog.CategoryModel Category to link to
Результат string

BlogIndex() публичный статический Метод

Gets the URL to the index of the blog
public static BlogIndex ( this urlHelper, int page = 1 ) : string
urlHelper this The URL helper
page int Page number to link to
Результат string

BlogPost() публичный статический Метод

Gets a URL to the specified blog post
public static BlogPost ( this urlHelper, PostModel post ) : string
urlHelper this The URL helper.
post Daniel15.Data.Entities.Blog.PostModel Blog post to link to
Результат string

BlogPostAbsolute() публичный статический Метод

Gets an absolute URL to the specified blog post
public static BlogPostAbsolute ( this urlHelper, PostModel post ) : string
urlHelper this The URL helper.
post Daniel15.Data.Entities.Blog.PostModel Blog post to link to
Результат string

BlogPostEdit() публичный статический Метод

Gets a URL to edit the specified blog post
public static BlogPostEdit ( this urlHelper, PostModel post ) : string
urlHelper this The URL helper.
post Daniel15.Data.Entities.Blog.PostModel Blog post to link to
Результат string

BlogTag() публичный статический Метод

Gets the URL to the specified blog tagged post listing
public static BlogTag ( this urlHelper, Daniel15.Data.Entities.Blog.TagModel tag, int page = 1 ) : string
urlHelper this The URL helper
tag Daniel15.Data.Entities.Blog.TagModel Tag to link to
page int Page number to link to
Результат string

BlogTag() публичный статический Метод

Gets the URL to the specified blog tagged post listing
public static BlogTag ( this urlHelper, string slug, int page = 1 ) : string
urlHelper this The URL helper
slug string Slug of the tag
page int Page number to link to
Результат string