I’m trying to make my Action return a different view for different platforms, respecting the routing config. If I create a custom ViewResult, will I override the FindView method? And if so, how can I modify the View that is automatically found?
For example: HomeController.About action would display View\Home\About.cshtml on computer, View\Home\AboutTablet.cshtml on a tablet, and View\Home\AboutMobile.cshtml on a cell phone
There’s a NuGet for you: MobileViewEngines. ScottHa covered it in a blog post. It’s spec compatible with ASP.NET MVC 4 where you can get rid of it easily because this functionality is built-in.