Which class is to be updated to specify the home controller in Mobile area?
-
RazorLayout
-
ViewStart
-
HomeController
-
MobileAreaRegistration
D
Correct answer
Explanation
In ASP.NET MVC, mobile area registration is handled by the MobileAreaRegistration class in the App_Start folder. This class inherits from AreaRegistration and is specifically designed to register mobile-specific areas. The HomeController (C) handles routing logic within an area, while ViewStart (B) manages view layouts and RazorLayout (A) is a layout file - none of these specify the area registration itself.