Esempio n. 1
0
 public ActionResult Home()
 {
     var appViewModel = new AppViewModel();
     appViewModel.UserLocale = "en";
     if (Request.UserLanguages[0].StartsWith("fr"))
     {
         appViewModel.UserLocale = "fr";
     }
     return View(appViewModel);
 }
Esempio n. 2
0
 public ActionResult AboutFr()
 {
     var appViewModel = new AppViewModel();
     appViewModel.UserLocale = "fr";
     return View(appViewModel);
 }