I want to disable authorization in one action. I have added authorize attribute at the controller level
[Authorize]
public class HomeController : Controller
{
public ActionResult Register()
{
return View();
}
public ActionResult Login()
{
return View();
}
}
thanks in advance..
You have to use [AllowAnonymous] attribute