2009-12-28 36 views

回答

1

您可以使用ModelBinderAttribute。例如

[HttpPost] 
public ActionResult CreateTask([ModelBinder(typeof(TaskBinder))] Task task) 
+0

「而不是按類型或屬性?」 – jfar 2009-12-28 22:20:25