Skip to content

Commit 0342c01

Browse files
authored
Merge pull request #2701 from TechnologyEnhancedLearning/Develop/feature/TD-3924-RankingController-refactor
TD-3924-RankingController - refactor
2 parents 5d4c8ee + 33cc39a commit 0342c01

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

DigitalLearningSolutions.Web/Controllers/TrackingSystem/Centre/Dashboard/RankingController.cs

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
namespace 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;
@@ -19,15 +18,15 @@
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

Comments
 (0)