public ActionResult Output(string input) { LeekbeetTranslator newLeekbeet = new LeekbeetTranslator(); newLeekbeet.Input = input; newLeekbeet.Output = ""; newLeekbeet.Translate(newLeekbeet); return(View(newLeekbeet)); }
public ActionResult Output(string input) { ActionResult result; if (string.IsNullOrEmpty(input)) { result = RedirectToAction("Index"); } else { LeekbeetTranslator.Input = input; LeekbeetTranslator.Output = ""; LeekbeetTranslator.Translate(); result = View(); } return(result); }