public ActionResult Create(CreateEmployeeModel employee) { try { // TODO: Add insert logic here //return verifyEmployeeUniquePhone(employee.phone); employees.Crear(employee); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }
public ActionResult Create(CreateEmployeeModel employee) { try { // TODO: Add insert logic here //return verifyEmployeeUniquePhone(employee.phone); employees.Crear(employee); return(RedirectToAction(nameof(Index))); } catch { return(View()); } }