Short note on Controllers Responsibilities.

 Controllers Responsibilities

  •  Controllers are usually placed in a folder called "Controllers", directly in the root of your MVC project.
  •  They are usually named based on their purpose, with the word "Controller" as a suffix.
  •  The Controller has three major responsibilities

◦ Handle the Request from the User

◦ Build a Model – Controller Action method executes the application logic and builds a model

◦ Send the Response – it returns the Result in HTML/File/JSON/XML or other formats as requested by the user.

Comments

Popular posts from this blog

What are different steps used in JDBC? Write down a small program showing all steps.

Discuss classification or taxonomy of virtualization at different levels.

Pure Versus Partial EC