public void GetApplyDispatchCourseTest()
        {
            DbContextHelper.Init(typeof(CourseDbContext), GlobalSettings.DATABASE.ConnectionString, 8);

            DispatchRepository dp = new DispatchRepository();

            var list = dp.GetAvailableCourse();
        }
        public string Index()
        {
            DispatchView view = new DispatchView();
            DispatchRepository dispatchRepo = new DispatchRepository();

            var result = dispatchRepo.GetAvailableCourse();
            return view.ShowAvailableCourse(result);
        }
        public void ShowAvaliableCourseTest()
        {
            DbContextHelper.Init(typeof(CourseDbContext), GlobalSettings.DATABASE.ConnectionString, 8);

            DispatchRepository dp = new DispatchRepository();

            DispatchView view = new DispatchView();
            view.ShowAvailableCourse(dp.GetAvailableCourse());
        }