Areas - Mobile

Mar 19, 2011 at 3:15 PM

Hi

I am a little new to the MVC framework, but jsut wanted to know one thing, why have the same controllers for the mobile section and the main section. Eg.

public class HomeController : Controller
    {
         public ActionResult Index()
        {
            return View();
        }        
    }  

the above ActionResult Index() is common, but if we create say a BaseHomeController and call that, wouldn't the framework as per the area return the correct View, ie for the main site return the view /Views/Home/Index.cshtml and for the mobile site return the view /Area/Mobile/Views/Home/Index.cshml

Please Help?