public ActionResult Index() { var myModel = new MyModel { SomeInt = new Changeable<int> { Value = 5 }, TheString = new Changeable<string> { Value = "something" } }; return View(myModel); }
public ActionResult Index(MyModel myModel) { if (ModelState.IsValid) { // save model // return index action return RedirectToAction("Index"); } // return invalid model return View(myModel); }