예제 #1
0
 public ActionResult SayHello(SayHelloForm form)
 {
     //bad way with magic string:
     //return RedirectToAction("SayHello", new { name = form.Name });
     //good way using Microsoft.Web.Mvc Futures
     return(this.RedirectToAction(c => c.SayHello(form.Name)));
 }
예제 #2
0
 public ActionResult SayHello(SayHelloForm form)
 {
     return(this.RedirectToAction(c => c.SayHello(form.Name)));
 }