I've written a controller to override Orchard.Search, I'm wanting to use the exisiting views. I can achieve this with the following from my controller:
return View("Search/index", searchViewModel);
If the Orchard.Search view is overridden in a theme I need to use the following:
return View("Orchard.Search/Search/index", searchViewModel);
What i would like to do is have my controller use the Orchard.Search view by default but if the Orchard.Search view is overridden in a theme, then use the theme view.
Any idea on how i might be able to do this? I assume in the theme engine there must be a find view method i might be able to use to get the path...