public bool DeleteStudent(int id) { try { StudentGetway studentGetway = new StudentGetway(); return(studentGetway.DeleteStudent(id)); } catch (Exception) { throw; } }
public string DeleteStudent(Student aStudent) { int rowEffected = studentGetway.DeleteStudent(aStudent); if (rowEffected > 0) { return("successfully deleted"); } else { return("Failed delete"); } }