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