public ActionResult Eliminar(int identificador)
 {
     try
     {
         EmpleadoCN.Eliminar(identificador);
         return(Json(new { ok = true, toRedirect = Url.Action("Index") }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(new { ok = false, msg = ex.Message }, JsonRequestBehavior.AllowGet));
     }
 }
 public ActionResult Eliminar(int id)
 {
     try
     {
         EmpleadoCN.Eliminar(id);
         return(Json(new { ok = true, data = Url.Action("Index", "Empleado") }, JsonRequestBehavior.AllowGet));
     }
     catch (Exception ex)
     {
         return(Json(new { ok = false, msg = "Problema en el proceso " + ex.Message }, JsonRequestBehavior.AllowGet));
     }
 }