예제 #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 });
 }