日期:2014-05-17 浏览次数:20522 次
routes.MapRoute(
name: "download",
url: "Home/download/{id}/{fileName}",
defaults: new { controller = "Home", action = "downlaod", id = UrlParameter.Optional, fileName = UrlParameter.Optional }
);
public ActionResult download(int id, string fileName)
{
return xxxx;
}