public ActionResult ConvertMarkup(MarkupConverterModel model) { string result = this.markupConverterService.ParseMarkup(model.MarkupLanguage, model.MarkupText); model.ConvertedMarkup = result; return PartialView("ResultPartial", model); }
// GET: MarkupConverter public ActionResult Index() { MarkupConverterModel model = new MarkupConverterModel(); this.markupConverterService.GetLanguages().ToList<string>().ForEach(x => model.Languages.Add(x)); return View(model); }