11namespace DigitalLearningSolutions . Web . Controllers . TrackingSystem . Centre . Dashboard
22{
3- using DigitalLearningSolutions . Data . DataServices ;
43 using DigitalLearningSolutions . Data . Enums ;
54 using DigitalLearningSolutions . Web . Attributes ;
65 using DigitalLearningSolutions . Web . Helpers ;
1918 public class RankingController : Controller
2019 {
2120 private readonly ICentresService centresService ;
22- private readonly IRegionDataService regionDataService ;
21+ private readonly IRegionService regionService ;
2322
2423 public RankingController (
2524 ICentresService centresService ,
26- IRegionDataService regionDataService
25+ IRegionService regionService
2726 )
2827 {
2928 this . centresService = centresService ;
30- this . regionDataService = regionDataService ;
29+ this . regionService = regionService ;
3130 }
3231
3332 public IActionResult Index ( int ? regionId = null , Period ? period = null )
@@ -36,7 +35,7 @@ public IActionResult Index(int? regionId = null, Period? period = null)
3635
3736 var centreId = User . GetCentreIdKnownNotNull ( ) ;
3837
39- var regions = regionDataService . GetRegionsAlphabetical ( ) ;
38+ var regions = regionService . GetRegionsAlphabetical ( ) ;
4039
4140 var centreRankings = centresService . GetCentresForCentreRankingPage ( centreId , period . Days , regionId ) ;
4241
0 commit comments