public ActionResult Index() { var flairitorText = new FlairitorText(); flairitorText.Text = "Enter Text Here"; flairitorText.FlairedText = this.formatter.FormatFlairedString(this.flairitor.GenerateFlairText(flairitorText.Text), new FlairFormatOptions(true)); return(View(flairitorText)); }
public ActionResult Update(FlairitorText model) { model.FlairedText = this.formatter.FormatFlairedString(this.flairitor.GenerateFlairText(model.Text), new FlairFormatOptions(true)); return(View("Index", model)); }