public ActionResult Delete(int id) { if (alumnoBl.EliminarAlumno(id.ToString())) { return(Json(new { success = true, message = "Eliminado Correctamente" }, JsonRequestBehavior.AllowGet)); } else { return(Json(new { success = false, message = "Error Successfully" }, JsonRequestBehavior.AllowGet)); } }
public ActionResult Eliminar(Alumno alumno) { _AlumnoBL.EliminarAlumno(alumno.Id); return(RedirectToAction("Index"));//pendiente index }