1
是任何解決方案,以紀念像這樣asp.net的MVC IsAuthenticated屬性
[IsAuthenticated(true)]
public ActionResult Profile()
{
return View();
}
沒有方法調用if (request.IsAuthenticated)
?
是任何解決方案,以紀念像這樣asp.net的MVC IsAuthenticated屬性
[IsAuthenticated(true)]
public ActionResult Profile()
{
return View();
}
沒有方法調用if (request.IsAuthenticated)
?
[Authorize]
public ActionResult Profile()
{
return View();
}