示例#1
0
def delete(_resp, id):
    cmd = course_facade.delete_course_cmd(id)
    try:
        cmd()
    except CommandExecutionException:
        _resp.status_code = 500
        return JsonResponse(cmd.errors)
示例#2
0
def delete(course_id):
    course_facade.delete_course_cmd(course_id)()
示例#3
0
def delete(course_id):
    course_facade.delete_course_cmd(course_id)()
    return RedirectResponse(router.to_path(index))