private static string MapTextSerialisedData(QuestionDef sqd) { var tqd = (TextQuestionDef)sqd; return string.Format("<opt><qt>{0}</qt><qs>{1}</qs><sl>{2}</sl></opt>", tqd.QuestionText, tqd.QuestionSuffix, tqd.SingleLine); }
public void UpdateQuestionDef(QuestionDef questionDef) { }
public ActionResult Edit(QuestionDef model) { if (ModelState.IsValid) { _repo.UpdateQuestion(model); return RedirectToAction("Index"); } return View(model); }