public void logoutPatient(AuthorizedDTO dto) throws Exception { Patient patient = appDAO.findPatientBySessionId(dto.getSessionId()); activityLogService.logLogout(patient.getId()); appDAO.deletePatientSession(dto.getSessionId()); }