public ActionResult Index() { var model = new MyTestModel(); model.CurrentCulture = Thread.CurrentThread.CurrentCulture.ToString(); return View(model); }
public ActionResult Index(MyTestModel model) { if (!ModelState.IsValid) { return View(model); } return RedirectToAction("Index"); }