Developing ASP.NET MVC Web Applications — Question 10

You develop an ASP.NET MVC application. The application has several Razor views.
The application must execute different server-side code for desktop and mobile devices.
You need to choose an approach to support mobile devices.
Which two approaches can you use? Each correct answer presents a complete solution.

Answer options

Correct answer: B, D

Explanation

Option B is correct because creating separate areas allows for tailored controllers and views for each device type. Option D is also correct as it allows for different controllers and views while maintaining a consistent Razor layout. Options A and C are incorrect because they do not provide complete solutions that independently support the distinct requirements for mobile and desktop devices.