def get_correction_response_state_by_id(row_id): dao = CorrectionResponseStateDAO() correction_response_states = dao.get(row_id) return {"correction_response_states": correction_response_states.as_dict()}, 200
def get_correction_response_states(count, start): dao = CorrectionResponseStateDAO() correction_response_states = dao.get_all(count, start) return {"correction_response_states": convert_obj_list_to_dict_list(correction_response_states)}, 200