ASP.NET MVC – Make Action Method as Anonymous Methods in Secure Controller

Updated on     Kisan Patel

To make an action method as a anonymous methods in secure controller, we can make that method as Anonymous method by putting [AllowAnonymus] before the method.

public class HomeController : Controller
    public ActionResult Index()
        return View();


Leave a Reply