用户仅对控制器的某些路由进行身份验证

时间:2018-01-17 11:03:29

标签: asp.net-mvc authentication routing

以下是我的控制器的代码。令人惊讶的是,当我登录时,似乎我只记录了一些{instruments}。

[Route("Data/{instrument}")]
[OutputCache(Duration = 3600,Location = OutputCacheLocation.Server,VaryByParam = "instrument")]
public ActionResult Index(string instrument)
{
    DataViewList dane = new DataViewList(instrument);
    return View("Index", "_LayoutChooseInst", dane);
}

0 个答案:

没有答案
相关问题