Update for the tunnel graph to have the stats my month and type of flights
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user