routes.MapRoute( name: "Null Default", url: "{controller}/{id}/{action}" );
public class TestController : Controller { public ActionResult YourAction(int Id) { } }
public ActionResult YourAction()
{
RedirectToAction("Action", "Controller", new { id = 1 });
}
你这是默认路由,Controller,Action用系统自动创建的就行。