public ActionResult UpdateEmployee(int IdEmployee)
        {
            CRUDEmployee = new EmployeeRepository();
            ModelState.Clear();

        return View(CRUDEmployee.SearchEmployee().Find(Employee => Employee.IdEmployee == IdEmployee));
        }
        public ActionResult SearchEmployee()
        {
            CRUDEmployee = new EmployeeRepository();
            ModelState.Clear();

        return View(CRUDEmployee.SearchEmployee());
        }
        public ActionResult UpdateEmployee(EmployeeModel EmployeeData, int IdEmployee)
        {
            try
            {
                CRUDEmployee = new EmployeeRepository();
                CRUDEmployee.UpdateEmployee(EmployeeData);

            return RedirectToAction("SearchEmployee", "Employee");
            }
            catch
            {

            return View();
            }
        }
        public ActionResult RegisterEmployee(EmployeeModel EmployeeData)
        {
            try
            {
                if (ModelState.IsValid)
                {
                    CRUDEmployee = new EmployeeRepository();

                    if(CRUDEmployee.RegisterEmployee(EmployeeData) >= 1)
                    {
                        ViewBag.Message = "Empleado registrado";
                        ModelState.Clear();
                    }
                }

            return View();
            }
            catch
            {

            return View();
            }
        }
        public ActionResult DeleteEmployee(int IdEmployee)
        {
            try
            {
                CRUDEmployee = new EmployeeRepository();

                if(CRUDEmployee.DeleteEmployee(IdEmployee) >= 1)
                {
                    ViewBag.AlertMsg = "Empleado eliminado";
                }

            return RedirectToAction("SearchEmployee", "Employee");
            }
            catch
            {

            return View();
            }
        }