Ejemplo n.º 1
0
 // 4. ************* DELETE STUDENT DETAILS ******************
 // GET: Student/Delete/5
 public ActionResult Delete(int id)
 {
     try
     {
         StudentDBHandle dBHandle = new StudentDBHandle();
         if (dBHandle.DeleteStudents(id))
         {
             ViewBag.AlertMsg = "Estudiante eliminado exitosamente";
         }
         return(RedirectToAction("Index"));
     }
     catch
     {
         return(View());
     }
 }