コード例 #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)));
 }