How to call a view from different controller action

Rashmi
Rashmi
Member
90 Points
25 Posts

Hi,

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

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

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