public ActionResult Insert(DemoInsertCommand cmd) { if (DemoService.Insert(cmd.DemoString).WasSuccessfull()) { return RedirectToAction("Index"); } else { return View(cmd); } }
public ActionResult Insert() { var model = new DemoInsertCommand(); return View(model); }