Пример #1
0
 public ActionResult Home()
 {
     var appViewModel = new AppViewModel();
     appViewModel.UserLocale = "en";
     if (Request.UserLanguages[0].StartsWith("fr"))
     {
         appViewModel.UserLocale = "fr";
     }
     return View(appViewModel);
 }
Пример #2
0
 public ActionResult AboutFr()
 {
     var appViewModel = new AppViewModel();
     appViewModel.UserLocale = "fr";
     return View(appViewModel);
 }