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:
- ProductDictionary.resx
- ProductDictionary.es.resx
- ProductDictionary.fr.resx
01
02
03
04
05
06
02
03
04
05
06
public ActionResult GetProducts()
{
List<ProductModel> products = DataBase.DBAccess.GetProducts();
return View(Products);
}
{
List<ProductModel> products = DataBase.DBAccess.GetProducts();
return View(Products);
- A. ViewBag.LocaIizedCurrency = Resources.ProductDictionary.Currency;
- B. VievBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency", new System.Globalization.CultureInfo(Men"));
- C. VievBag.LocalizedCurrency = HttpContext.GetLocalResourceObject("ProductDictionary", "Currency");
- D. ViewBag.LocalizedCurrency = HttpContext.GetGlobalResourceObject("ProductDictionary", "Currency");