1.

How We Can Override The Action Names In Mvc?

Answer»

If we WANT to override the ACTION names we can do like this:

[ActionName("NewActionName")]

public ACTIONRESULT TestAction() {

return View();

 }

If we want to override the action names we can do like this:

[ActionName("NewActionName")]

public ActionResult TestAction() {

return View();

 }



Discussion

No Comment Found