c# - How to load view from one controller using a different one? -
c# - How to load view from one controller using a different one? -
really simple question: want able redirect 1 page in razor mvc.
the user clicks link on first page, calls method on first controller. method uses info own model, methods sec controller, build model sec controller.
i wish display sec view using newly constructed model. however, there doesn't seem way utilize view() (unless i'm blind). 2 controllers in different folders, can't automatically find page load.
any ideas?
you can utilize like
return view("../foldername/viewname", model);
c# asp.net-mvc razor
Comments
Post a Comment