Let’s say you have an Action method named ‘Edit’.
public ActionResult Edit(int CustID)
However you really don’t like the word ‘Edit’ for some reason. there is a very easy way to create an Alias for your Action method to be used in place of the one already there.
All you need to do is create an ActionName attribute for you method, something like this:
[ActionName("Update")] public ActionResult Edit(int CustID)
That’s all there is to it. Keep in mind you can not reach this method using ‘Edit’. From that point on out, you will need to use ‘Update’.
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF