Ejemplo n.º 1
0
 public ActionResult Create(WorkerCreateModel model)
 {
     if (ModelState.IsValid)
     {
         var worker = _workerCreateCommand.Execute(model);
         return RedirectToAction("Details", new {id = worker.Id});
     }
     return View(model);
 }
Ejemplo n.º 2
0
 public ActionResult Create()
 {
     var model = new WorkerCreateModel();
     return View(model);
 }