I'm working on a page in an Asp.NET MVC 3 application. I have an action in one controller called Alarm. That controller is called Dispatch. For various reasons, I need to modify this action so it displays its results in a view from another controller called Read. This view is called Details.
How can I make the Alarm action return that view? I tried
return View( "Read/Details", vm );
but that displayed this error message:
The view 'Read/Details' or its master was not found or no view engine supports the searched locations. The following locations were searched: ~/Views/Dispatch/Read/Details.aspx ~/Views/Dispatch/Read/Details.ascx ~/Views/Shared/Read/Details.aspx ~/Views/Shared/Read/Details.ascx ~/Views/Dispatch/Read/Details.cshtml ~/Views/Dispatch/Read/Details.vbhtml ~/Views/Shared/Read/Details.cshtml ~/Views/Shared/Read/Details.vbhtml
What's the right way to do this?