unitofwork for course entity