public IHttpActionResult Delete(int id) { try { _teacherClassService.Delete(id); return(Ok(true)); } catch (Exception ex) { return(InternalServerError(ex)); } }
public void Delete(int classId) { _studentClassService.Delete(classId); _teacherClassService.Delete(classId); _classRepository.Delete(classId); }