Ejemplo n.º 1
0
 public ActionResult Delete(int id)
 {
     if (TrainingManager.DeleteStudent(id))
     {
         ViewData["DelStatus"] = "student data deleted sucessfully";
         return(View());
     }
     else
     {
         ViewData["status"] = "Failed to Delete the Student info";
         return(View());
     }
 }