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