Ejemplo n.º 1
0
 public ActionResult Create(Employee employee)
 {
     if (!ModelState.IsValid)
     {
         return(View(employee));
     }
     createEmployee.Execute(employee);
     return(RedirectToAction("Index"));
 }