Esempio n. 1
0
 public ActionResult Create(QuestionnaireModel model)
 {
     if (ModelState.IsValid)
     {
         QuestionnaireInfo info = new QuestionnaireInfo();
         info.Id    = Guid.NewGuid();
         info.Title = model.Title;
         info.Desc  = model.Desc;
         service.Add(info);
         return(Json(new AjaxResult()
         {
             Result = Result.Success
         }));
     }
     return(View(PluginHelper.GetViewPath(this.GetType(), "Create"), model));
 }