Select from following answers:- NonAction
- NoAction
- Void
- Restrict
- All Above
To prevent public controller method from being implicitly bound to action name we use
NonAction attribute like below
[NonAction]
public ActionResult ContactUs()
{
// ...
}
In this case, user will not be able to call ../ContactUs url to call above method.
Show Correct Answer
Asked In: Many Interviews |
Alert Moderator