def save(_handler, cristianismo_id=None, **cristianismo_properties): cmd = facade.save_cristianismo_cmd(**cristianismo_properties) try: cmd() except CommandExecutionException: context = {"errors": cmd.errors, "cristianismo": cmd.form} return TemplateResponse(context, "cristianismos/admin/form.html") _handler.redirect(router.to_path(admin))
def save(**cristianismo_properties): cmd = facade.save_cristianismo_cmd(**cristianismo_properties) return _save_or_update_json_response(cmd)