def update_user_address(body_id, form_to_display): if forms.update_body_address(body_id, "user"): return redirect(url_for("update_user", body_id=body_id, form_to_display="address")) return redirect(url_for('list_users'))
def update_patient_address(body_id, form_to_display): if forms.update_body_address(body_id, "patient"): return redirect(url_for("update_patient", body_id=body_id, form_to_display="address")) return redirect(url_for('list_patients'))
def update_dental_office_address(body_id, form_to_display): if forms.update_body_address(body_id, "dental_office"): return redirect(url_for("update_dental_office", body_id=body_id, form_to_display="address")) return redirect(url_for('list_dental_offices'))
def update_md_address(body_id, form_to_display): if forms.update_body_address(body_id, "md"): return redirect(url_for("update_md", body_id=body_id, form_to_display="address")) return redirect(url_for("list_md"))