Friday, January 12, 2018

Action Selectors:

Action selector is the attribute that can be applied to the action methods. It help routing engine to select correct action
nethod.

There are three Action Selectors:
1. ActionName : It allows us to specify a different action name than the method name

[ActionName("find")]
public ActionResult GetByid()
{

}

2. NonAction : It indicates that a public method of a Controller is not an action method.
3. ActionVerbs : The ActionVerbs selector is used when you want to control the selection of an action method based on a Http request method. 

No comments:

Followers

Link