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