我在控制器中有一个动作
public ActionResult Download()
{
return File(FileStream, "application/octet-stream", fileName);
}
如果我想使用FilePathresult作为:
public FilePathResult Download()
{
return File(FileStream, "application/octet-stream", fileName);
}
我可以像这样调用Download()
按钮的点击吗
@Html.ActionLink("FileDownload", "Download", new { file = item.FileName, GuID = item.DocumentGuID }) /text).Width(10);
在第二种情况下,实施Download()
也是正确的,即
public FilePathResult Download()
?