Friday, May 3, 2019

Showing content on home/index from other controllers

Questions is specific to .Net MVC. Couldn't find anywhere else to ask this.

On the home page of my app I have a could forms. Those forms have a lot of methods behind the scenes so I want to have separate controllers for them so the HomeController is not super big and holding methods of multiple "subjects".

Im pretty sure I can use partial views served up from the various controllers and have the forms post back to them. This way the HomeController is just a simple index method.

I guess i just wanted to see if there are any pitfalls I am not seeing in this, or if I should just throw it all in the home controller.

Showing content on home/index from other controllers Click here
  • Blogger Comment
  • Facebook Comment

0 comments:

Post a Comment

The webdev Team