public int DeleteStudent(Student student) { try { return(student.Delete()); } catch (Exception ex) { throw new FaultException(ex.Message); } }
public void DeleteStudent(string id) { Student.Delete(Convert.ToInt32(id)); }