Tuesday, 31 May 2016

Points to Remember in MVC ASP.NET

Points to Remember :

  1. All the public methods in the Controller class are called Action methods.
  2. 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.
  3. ActionResult is a base class of all the result type which resturns from Action method.
  4. Base Controller class contains methods that returns appropriate result type e.g. View(), Content(), File(), JavaScript() etc.
  5. Action method can include Nullable type parameters.

No comments:

Post a Comment