Пример #1
0
 public static string Post(this UrlHelper urlHelper, Sub sub, Post post)
 {
     return urlHelper.Post(sub.Name, post.Id, post.Title);
 }
Пример #2
0
 public static string Comment(this UrlHelper urlHelper, string subName, Post post, Comment comment)
 {
     return urlHelper.RouteUrl("PostComment", new { subName, id = post.Id, title=post.Title.UrlFriendly(), commentId = comment.Id });
 }