<

Question 17


70-486 Skills Measured >> 3.2 Develop User Experience >>

Question

You are developing an ASP.NET MVC application in Visual Studio 2012. The application supports multiple cultures.
The application contains three resource files in the Resources directory: Each file contains a public resource named Title with localized translation. The application is configured to set the culture based on the client browser settings. The application contains a controller with the action defined in the following code segment. (Line numbers are included for reference only.)
01 public ActionResult GetProducts()
02 {
03
04List products = DataBase.DBAccessGetProducts();
05 return View(products);
06}
You need to set ViewBag.Title to the localized title contained in the resource files. Which code segment should you add to the action at line 03?

Answer:

C