forum

home / developersection / forums / is it possible to disable authorization on one action in an mvc controller?

Is it possible to disable authorization on one action in an MVC controller?

Anonymous User 1176 13-Mar-2018

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..


Updated on 14-Mar-2018

I am a content writter !

Can you answer this question?

Answer

1 Answers

Liked By