Exemplo n.º 1
0
 public bool DeleteStudent(int id)
 {
     try
     {
         StudentGetway studentGetway = new StudentGetway();
         return(studentGetway.DeleteStudent(id));
     }
     catch (Exception)
     {
         throw;
     }
 }
Exemplo n.º 2
0
        public string DeleteStudent(Student aStudent)
        {
            int rowEffected = studentGetway.DeleteStudent(aStudent);

            if (rowEffected > 0)
            {
                return("successfully deleted");
            }

            else
            {
                return("Failed delete");
            }
        }