def get_pronto_state_by_id(row_id): dao = ProntoStateDAO() pronto_states = dao.get(row_id) return { "pronto_states": pronto_states.as_dict() }, 200
def get_pronto_states(count, start): dao = ProntoStateDAO() pronto_states = dao.get_all(count, start) return { "pronto_states": convert_obj_list_to_dict_list(pronto_states) }, 200