예제 #1
0
 public static string Logout(this IUrlResolver resolver)
 {
     return(resolver.UrlFor <LoginController>(c => c.Logout(null)));
 }
예제 #2
0
 public static string Login(this IUrlResolver resolver)
 {
     return(resolver.UrlFor <LoginController>());
 }
예제 #3
0
 public static string HomeRss(this IUrlResolver resolver)
 {
     return(resolver.UrlFor <HomeController>(a => a.Index(null)) + ".rss");
 }
예제 #4
0
 public static string Home(this IUrlResolver resolver)
 {
     return(resolver.UrlFor <HomeController>());
 }
예제 #5
0
 public static string AddPost(this IUrlResolver resolver)
 {
     return(resolver.UrlFor <BlogPostController>(x => x.Add(null)));
 }
예제 #6
0
 public static string Admin(this IUrlResolver resolver)
 {
     return(resolver.UrlFor <SiteController>(x => x.Dashboard(null)));
 }