def delete(_resp, id): cmd = course_facade.delete_course_cmd(id) try: cmd() except CommandExecutionException: _resp.status_code = 500 return JsonResponse(cmd.errors)
def delete(course_id): course_facade.delete_course_cmd(course_id)()
def delete(course_id): course_facade.delete_course_cmd(course_id)() return RedirectResponse(router.to_path(index))