public ActionResult EditarEmpleado(AgregarEmpleadoModel model)
 {
     try
     {
         if (ModelState.IsValid)
         {
             using (CPMEntities datos = new CPMEntities())
             {
                 datos.sp_EditarEmpleado(model.idEmpleado, model.Nombre, model.IdDeptoD);
             }
             return(Redirect("~/ProyectoFinal/Empleado"));
         }
         return(View(model));
     }
     catch (Exception ex)
     {
         throw new Exception(ex.Message);
     }
 }