---
title: "accessing controller action"  
description: "accessing controller action"  
author: "Anonymous User"  
published: 2018-04-30  
updated: 2018-04-30  
canonical: https://www.mindstick.com/forum/34479/accessing-controller-action  
category: "asp.net mvc"  
tags: ["asp.net", "asp.net mvc"]  
reading_time: 1 minute  

---

# accessing controller action

I have a [controller](https://www.mindstick.com/blog/273/passing-values-from-controller-to-view-in-asp-dot-net-mvc) and [action](https://www.mindstick.com/forum/155752/what-is-action-result-with-its-types) as shown below. how can i make [login](https://www.mindstick.com/articles/12852/styles-login-form-in-android) action as [public](https://www.mindstick.com/blog/11097/java-access-modifiers-the-public-and-the-private-modifiers) means all can [access](https://www.mindstick.com/articles/12994/how-foreigners-can-access-blocked-websites-in-china) login [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page)

```
[Authorize]
public class AccountController : Controller {

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

  [HttpPost]
  public JsonResult JsonLogin(LoginModel model, string returnUrl) {
    // ...
  }
}
```


---

Original Source: https://www.mindstick.com/forum/34479/accessing-controller-action

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
