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