Can anybody please tell me why should I use NonAction? I mean say I have a form with several submit values: Update, Delete or Insert. Since all the submit buttons have the s
If you did not want to invoke some action methods then you have to mark it with a attribute [NonAction]
or by making it private
public ActionResult Index(){
return View();
}
[NonAction]
public ActionResult Countries(Listcountries){
return View(countries);
}
you can copy the code and paste it and see the result.thanks