Update for the tunnel graph to have the stats my month and type of flights

This commit is contained in:
Sébastien ANDRE
2023-08-22 13:04:29 +02:00
parent e21ab458b1
commit 7abfa2b2b7
6 changed files with 26 additions and 10 deletions

View File

@@ -53,10 +53,10 @@ namespace skydiveLogs_api.Controllers
// GET: api/TunnelFlight/month/20230101/20230701
[HttpGet("month/{beginDate}/{endDate}")]
[EnableCors]
public IEnumerable<StatisticResp> GetGroupByMonth(string beginDate, string endDate)
public IEnumerable<StatisticForChartResp> GetGroupByMonth(string beginDate, string endDate)
{
var result = _tunnelFlightService.GetTunnelFlightGroupByMonth(beginDate, endDate);
return _mapper.Map<IEnumerable<StatisticResp>>(result);
return _mapper.Map<IEnumerable<StatisticForChartResp>>(result);
}
// POST: api/Tunnel