Update API about the stats "ByGear"

This commit is contained in:
Sébastien André
2020-01-29 14:24:04 +01:00
parent 234d16925c
commit 72f0b13f34
3 changed files with 5 additions and 5 deletions

View File

@@ -11,7 +11,7 @@ namespace skydiveLogs_api.Business.Interface
IEnumerable<Statistic> GetStatsByJumpType();
IEnumerable<Statistic> GetStatsByRig();
IEnumerable<Statistic> GetStatsByGear();
IEnumerable<Statistic> GetStatsByYear();
}

View File

@@ -57,7 +57,7 @@ namespace skydiveLogs_api.Business
.ToList();
}
public IEnumerable<Statistic> GetStatsByRig()
public IEnumerable<Statistic> GetStatsByGear()
{
var allJumps = _jumpRepository.GetAll();

View File

@@ -48,11 +48,11 @@ namespace skydiveLogs_api.Controllers
return _mapper.Map<IEnumerable<StatisticResp>>(result);
}
[HttpGet("ByRig")]
[HttpGet("ByGear")]
[EnableCors]
public IEnumerable<StatisticResp> ByRig()
public IEnumerable<StatisticResp> ByGear()
{
var result = _statsService.GetStatsByRig();
var result = _statsService.GetStatsByGear();
return _mapper.Map<IEnumerable<StatisticResp>>(result);
}