public string ChangeJson([FromBody] ChangeSurveyModel model)
        {
            var db = new SessionStorage(HttpContext.Session);

            db.StoreSurvey(model.Id, model.Json);
            return(db.GetSurvey(model.Id));
        }
示例#2
0
        public JsonResult ChangeJson([FromBody] ChangeSurveyModel model)
        {
            var db = new SessionStorage(HttpContext.Session);

            db.StoreSurvey(model.id, model.text);
            return(Json(db.GetSurvey(model.id)));
        }