|
1 | 1 | namespace DigitalLearningSolutions.Web.Controllers.TrackingSystem.Delegates |
2 | 2 | { |
3 | | - using DigitalLearningSolutions.Data.DataServices; |
4 | 3 | using DigitalLearningSolutions.Data.Enums; |
5 | 4 | using DigitalLearningSolutions.Data.Helpers; |
6 | 5 | using DigitalLearningSolutions.Data.Models.Courses; |
@@ -31,24 +30,24 @@ public class DelegateCoursesController : Controller |
31 | 30 | private readonly ICourseService courseService; |
32 | 31 | private readonly IPaginateService paginateService; |
33 | 32 | private readonly IActivityService activityService; |
34 | | - private readonly ICourseCategoriesDataService courseCategoriesDataService; |
35 | | - private readonly ICourseTopicsDataService courseTopicsDataService; |
| 33 | + private readonly ICourseCategoriesService courseCategoriesService; |
| 34 | + private readonly ICourseTopicsService courseTopicsService; |
36 | 35 |
|
37 | 36 | public DelegateCoursesController( |
38 | 37 | ICourseService courseService, |
39 | 38 | ICourseDelegatesDownloadFileService courseDelegatesDownloadFileService, |
40 | 39 | IPaginateService paginateService, |
41 | 40 | IActivityService activityService, |
42 | | - ICourseCategoriesDataService courseCategoriesDataService, |
43 | | - ICourseTopicsDataService courseTopicsDataService |
| 41 | + ICourseCategoriesService courseCategoriesService, |
| 42 | + ICourseTopicsService courseTopicsService |
44 | 43 | ) |
45 | 44 | { |
46 | 45 | this.courseService = courseService; |
47 | 46 | this.courseDelegatesDownloadFileService = courseDelegatesDownloadFileService; |
48 | 47 | this.paginateService = paginateService; |
49 | 48 | this.activityService = activityService; |
50 | | - this.courseCategoriesDataService = courseCategoriesDataService; |
51 | | - this.courseTopicsDataService = courseTopicsDataService; |
| 49 | + this.courseCategoriesService = courseCategoriesService; |
| 50 | + this.courseTopicsService = courseTopicsService; |
52 | 51 | } |
53 | 52 |
|
54 | 53 | [NoCaching] |
@@ -80,8 +79,8 @@ public IActionResult Index( |
80 | 79 | var centreId = User.GetCentreIdKnownNotNull(); |
81 | 80 | var categoryId = User.GetAdminCategoryId(); |
82 | 81 | var courseCategoryName = this.activityService.GetCourseCategoryNameForActivityFilter(categoryId); |
83 | | - var Categories = courseCategoriesDataService.GetCategoriesForCentreAndCentrallyManagedCourses(centreId).Select(c => c.CategoryName); |
84 | | - var Topics = courseTopicsDataService.GetCourseTopicsAvailableAtCentre(centreId).Select(c => c.CourseTopic); |
| 82 | + var Categories = courseCategoriesService.GetCategoriesForCentreAndCentrallyManagedCourses(centreId).Select(c => c.CategoryName); |
| 83 | + var Topics = courseTopicsService.GetCourseTopicsAvailableAtCentre(centreId).Select(c => c.CourseTopic); |
85 | 84 |
|
86 | 85 | int offSet = ((page - 1) * itemsPerPage) ?? 0; |
87 | 86 | string isActive, categoryName, courseTopic, hasAdminFields, isCourse, isSelfAssessment; |
|
0 commit comments