public ActionResult Index() { TestViewModel vm = new TestViewModel { ChangeMe = "a1", DontChangeMe = "b1" }; ProtectedPropertyAttribute.LockObject(vm); return(View(vm)); }