Points to Remember in MVC ASP.NET
Points to Remember :
- All the public methods in the Controller class are called Action methods.
- Action method has following restrictions.
- Action method must be public. It cannot be private or protected.
- Action method cannot be overloaded.
- Action method cannot be a static method.
- ActionResult is a base class of all the result type which resturns from Action method.
- Base Controller class contains methods that returns appropriate result type e.g. View(), Content(), File(), JavaScript() etc.
- Action method can include Nullable type parameters.
No comments:
Post a Comment