Working with Action Selectors in MVC

Action selectors are attribute in MVC. It is used with action method and in routing by routing engine to handle a request. ActionName NonAction ActionVerbs 1. ActionName: ActionName attribute allow us to specify different action name than method name. [ActionName(“GetData”)] public ActionResult About(){ return View(); } Now URL will be http://localhost:port/controler/GetData/. Action name “About” is … Read more