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

Computer Fundamental of TU IT Assistant

What is meant by task environment? Explain the components of task environment?

How the features like ubiquity, information density, and richness make e-commerce better than traditional commerce. Justify with examples