How to call a view from different controller action

Rashmi
Rashmi
Member
820 Points
17 Posts

Hi,

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

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

Share:   fb twitter linkedin
Answers
Jak
Jak
Member
858 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