accessing controller action

Posted by  Chirag agarwal
 943  View(s)
Ratings:
Rate this:

I have a controller and action as shown below. how can i make login action as public means all can access login page


[Authorize]
public class AccountController : Controller {

  public ActionResult Login() {
    // ...
  }


  [HttpPost]
  public JsonResult JsonLogin(LoginModel model, string returnUrl) {
    // ...
  }
}

Answer