@@ -3,7 +3,6 @@ namespace DigitalLearningSolutions.Web.Controllers.TrackingSystem.Delegates
33 using System ;
44 using System . Collections . Generic ;
55 using System . Linq ;
6- using DigitalLearningSolutions . Data . DataServices ;
76 using DigitalLearningSolutions . Data . Enums ;
87 using DigitalLearningSolutions . Data . Extensions ;
98 using DigitalLearningSolutions . Data . Helpers ;
@@ -29,7 +28,7 @@ public class EmailDelegatesController : Controller
2928 {
3029 private const string EmailDelegateFilterCookieName = "EmailDelegateFilter" ;
3130 private readonly PromptsService promptsService ;
32- private readonly IJobGroupsDataService jobGroupsDataService ;
31+ private readonly IJobGroupsService jobGroupsService ;
3332 private readonly IPasswordResetService passwordResetService ;
3433 private readonly IUserService userService ;
3534 private readonly ISearchSortFilterPaginateService searchSortFilterPaginateService ;
@@ -38,7 +37,7 @@ public class EmailDelegatesController : Controller
3837
3938 public EmailDelegatesController (
4039 PromptsService promptsService ,
41- IJobGroupsDataService jobGroupsDataService ,
40+ IJobGroupsService jobGroupsService ,
4241 IPasswordResetService passwordResetService ,
4342 IUserService userService ,
4443 ISearchSortFilterPaginateService searchSortFilterPaginateService ,
@@ -47,7 +46,7 @@ IClockUtility clockUtility
4746 )
4847 {
4948 this . promptsService = promptsService ;
50- this . jobGroupsDataService = jobGroupsDataService ;
49+ this . jobGroupsService = jobGroupsService ;
5150 this . passwordResetService = passwordResetService ;
5251 this . userService = userService ;
5352 this . searchSortFilterPaginateService = searchSortFilterPaginateService ;
@@ -70,7 +69,7 @@ public IActionResult Index(
7069 Request ,
7170 EmailDelegateFilterCookieName
7271 ) ;
73- var jobGroups = jobGroupsDataService . GetJobGroupsAlphabetical ( ) ;
72+ var jobGroups = jobGroupsService . GetJobGroupsAlphabetical ( ) ;
7473 var customPrompts = promptsService . GetCentreRegistrationPrompts ( User . GetCentreIdKnownNotNull ( ) ) ;
7574 var delegateUsers = GetDelegateUserCards ( ) ;
7675
@@ -123,7 +122,7 @@ public IActionResult Index(
123122 Request ,
124123 EmailDelegateFilterCookieName
125124 ) ;
126- var jobGroups = jobGroupsDataService . GetJobGroupsAlphabetical ( ) ;
125+ var jobGroups = jobGroupsService . GetJobGroupsAlphabetical ( ) ;
127126 var customPrompts = promptsService . GetCentreRegistrationPrompts ( User . GetCentreIdKnownNotNull ( ) ) ;
128127
129128 var promptsWithOptions = customPrompts . Where ( customPrompt => customPrompt . Options . Count > 0 ) ;
@@ -167,7 +166,7 @@ public IActionResult Index(
167166 [ Route ( "AllEmailDelegateItems" ) ]
168167 public IActionResult AllEmailDelegateItems ( IEnumerable < int > selectedIds )
169168 {
170- var jobGroups = jobGroupsDataService . GetJobGroupsAlphabetical ( ) ;
169+ var jobGroups = jobGroupsService . GetJobGroupsAlphabetical ( ) ;
171170 var customPrompts = promptsService . GetCentreRegistrationPrompts ( User . GetCentreIdKnownNotNull ( ) ) ;
172171 var delegateUsers = GetDelegateUserCards ( ) ;
173172
0 commit comments