How to call a view from different controller action

Rashmi
Rashmi
1068 Points
19 Posts

Hi,

I have a view and want to call from two controller. Is it possible?

Views: 9514
Total Answered: 1
Total Marked As Answer: 0
Posted On: 30-Nov-2015 08:28

Share:   fb twitter linkedin
Answers
Jak
Jak
908 Points
132 Posts
         

Hi Rashmi,

You can put the view into the shared folder since the view engine first search into the current controller directory and then shared directory.

Example:

return View("NameOfShareView");
Posted On: 15-Dec-2015 22:14
 Log In to Chat