예제 #1
0
 public IHttpActionResult Delete(int id)
 {
     if (teacherManager.DeleteTeacherFromDB(id) && classeManager.removeTeacherAssClassesFromDB(null, id))
     {
         return(Ok());
     }
     else
     {
         return(BadRequest("Not a valid teacher id"));
     }
 }
예제 #2
0
 public IHttpActionResult DeleteTeacherFromClasse(string code, int id)
 {
     if (classeManager.removeTeacherAssClassesFromDB(code, id))
     {
         return(Ok());
     }
     else
     {
         return(BadRequest("Not a valid teacher id"));
     }
 }