コード例 #1
0
        protected override void Establish_context()
        {
            base.Establish_context();
            this._sessionTestModel = new SessionTestModel(1);
            this._appSettingModel = new AppSettingModel("The variable");
            this._serverVariablesModel = new ServerVariablesModel(new System.Collections.Specialized.NameValueCollection());

        }
コード例 #2
0
 public ActionResult Increase(SessionTestModel sessionTestModel)
 {
     this._sessionRepository.SetValue(SessionTestModelBinder.variableName, sessionTestModel.Number + 1, this.ControllerContext);
     return RedirectToAction("Index", "Home");
 }
コード例 #3
0
 public PartialViewResult Display(SessionTestModel sessionTestModel)
 {
     return PartialView(sessionTestModel);
 }