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

Legislations and IT in Nepal MCQ IT Officer(PSC)

Explain Aneka thread life cycle /Explain local thread and Aneka thread.

Explain advantages of authority delegation