How to call a view from different controller action

Rashmi
Rashmi
Member
206 Points
38 Posts

Hi,

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

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

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