@@ -3,7 +3,7 @@ namespace DigitalLearningSolutions.Web.Controllers.TrackingSystem.Delegates
33 using System ;
44 using System . Collections . Generic ;
55 using System . Linq ;
6- using DigitalLearningSolutions . Data . DataServices ;
6+ // using DigitalLearningSolutions.Data.DataServices;
77 using DigitalLearningSolutions . Data . Enums ;
88 using DigitalLearningSolutions . Data . Extensions ;
99 using DigitalLearningSolutions . Data . Helpers ;
@@ -29,7 +29,7 @@ public class EmailDelegatesController : Controller
2929 {
3030 private const string EmailDelegateFilterCookieName = "EmailDelegateFilter" ;
3131 private readonly PromptsService promptsService ;
32- private readonly IJobGroupsDataService jobGroupsDataService ;
32+ private readonly IJobGroupsService jobGroupsService ;
3333 private readonly IPasswordResetService passwordResetService ;
3434 private readonly IUserService userService ;
3535 private readonly ISearchSortFilterPaginateService searchSortFilterPaginateService ;
@@ -38,7 +38,7 @@ public class EmailDelegatesController : Controller
3838
3939 public EmailDelegatesController (
4040 PromptsService promptsService ,
41- IJobGroupsDataService jobGroupsDataService ,
41+ IJobGroupsService jobGroupsService ,
4242 IPasswordResetService passwordResetService ,
4343 IUserService userService ,
4444 ISearchSortFilterPaginateService searchSortFilterPaginateService ,
@@ -47,7 +47,7 @@ IClockUtility clockUtility
4747 )
4848 {
4949 this . promptsService = promptsService ;
50- this . jobGroupsDataService = jobGroupsDataService ;
50+ this . jobGroupsService = jobGroupsService ;
5151 this . passwordResetService = passwordResetService ;
5252 this . userService = userService ;
5353 this . searchSortFilterPaginateService = searchSortFilterPaginateService ;
@@ -70,7 +70,7 @@ public IActionResult Index(
7070 Request ,
7171 EmailDelegateFilterCookieName
7272 ) ;
73- var jobGroups = jobGroupsDataService . GetJobGroupsAlphabetical ( ) ;
73+ var jobGroups = jobGroupsService . GetJobGroupsAlphabetical ( ) ;
7474 var customPrompts = promptsService . GetCentreRegistrationPrompts ( User . GetCentreIdKnownNotNull ( ) ) ;
7575 var delegateUsers = GetDelegateUserCards ( ) ;
7676
@@ -123,7 +123,7 @@ public IActionResult Index(
123123 Request ,
124124 EmailDelegateFilterCookieName
125125 ) ;
126- var jobGroups = jobGroupsDataService . GetJobGroupsAlphabetical ( ) ;
126+ var jobGroups = jobGroupsService . GetJobGroupsAlphabetical ( ) ;
127127 var customPrompts = promptsService . GetCentreRegistrationPrompts ( User . GetCentreIdKnownNotNull ( ) ) ;
128128
129129 var promptsWithOptions = customPrompts . Where ( customPrompt => customPrompt . Options . Count > 0 ) ;
@@ -167,7 +167,7 @@ public IActionResult Index(
167167 [ Route ( "AllEmailDelegateItems" ) ]
168168 public IActionResult AllEmailDelegateItems ( IEnumerable < int > selectedIds )
169169 {
170- var jobGroups = jobGroupsDataService . GetJobGroupsAlphabetical ( ) ;
170+ var jobGroups = jobGroupsService . GetJobGroupsAlphabetical ( ) ;
171171 var customPrompts = promptsService . GetCentreRegistrationPrompts ( User . GetCentreIdKnownNotNull ( ) ) ;
172172 var delegateUsers = GetDelegateUserCards ( ) ;
173173
0 commit comments