diff --git a/Back/skydiveLogs-api.Business/Interface/IStatsService.cs b/Back/skydiveLogs-api.Business/Interface/IStatsService.cs index bb1b99c..cc87bb2 100644 --- a/Back/skydiveLogs-api.Business/Interface/IStatsService.cs +++ b/Back/skydiveLogs-api.Business/Interface/IStatsService.cs @@ -11,7 +11,7 @@ namespace skydiveLogs_api.Business.Interface IEnumerable GetStatsByJumpType(); - IEnumerable GetStatsByRig(); + IEnumerable GetStatsByGear(); IEnumerable GetStatsByYear(); } diff --git a/Back/skydiveLogs-api.Business/StatsService.cs b/Back/skydiveLogs-api.Business/StatsService.cs index 82ef876..9676526 100644 --- a/Back/skydiveLogs-api.Business/StatsService.cs +++ b/Back/skydiveLogs-api.Business/StatsService.cs @@ -57,7 +57,7 @@ namespace skydiveLogs_api.Business .ToList(); } - public IEnumerable GetStatsByRig() + public IEnumerable GetStatsByGear() { var allJumps = _jumpRepository.GetAll(); diff --git a/Back/skydiveLogs-api/Controllers/StatsController.cs b/Back/skydiveLogs-api/Controllers/StatsController.cs index 5e6cc3a..68c8f56 100644 --- a/Back/skydiveLogs-api/Controllers/StatsController.cs +++ b/Back/skydiveLogs-api/Controllers/StatsController.cs @@ -48,11 +48,11 @@ namespace skydiveLogs_api.Controllers return _mapper.Map>(result); } - [HttpGet("ByRig")] + [HttpGet("ByGear")] [EnableCors] - public IEnumerable ByRig() + public IEnumerable ByGear() { - var result = _statsService.GetStatsByRig(); + var result = _statsService.GetStatsByGear(); return _mapper.Map>(result); }