Ejemplo n.º 1
0
 /// <summary>
 /// Redirects the request to the url from IUrlRegistry.UrlFor<TActionHandler>(method)
 /// </summary>
 /// <typeparam name="TActionHandler"></typeparam>
 /// <param name="method"></param>
 /// <returns></returns>
 public static TModel To <TActionHandler>(Expression <Action <TActionHandler> > method)
 {
     return(new TModel()
     {
         RedirectTo = FubuContinuation.RedirectTo(method)
     });
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Redirects the request to url from IUrlRegistry.UrlFor(destination)
 /// </summary>
 /// <param name="destination"></param>
 /// <returns></returns>
 public static TModel To(object destination)
 {
     return(new TModel()
     {
         RedirectTo = FubuContinuation.RedirectTo(destination)
     });
 }