refactoring CourseController.cs to use uow