这适用于ASP.Net MVC Beta.
public ActionResult Add( string name ) { .... } or public ActionResult Add( FormCollection form ) { string name = form["Name"]; } or public ActionResult Add( [Bind(Prefix="")]Villa villa ) { villa.Name ... }
你尝试过这样的事吗?伪...
public class VillaController : Controller { public ActionResult Add(string name) { // Code... } }