Exemplo n.º 1
0
 public ActionResult CreatePost(EmployeeVM emp)
 {
     if (ModelState.IsValid)
     {
         facade.InsertEmployee(emp);
         return(RedirectToAction("Index"));
     }
     else
     {
         return(View("Create", emp));
     }
 }