Add some update

Add a TODO for the ideas
This commit is contained in:
Sébastien ANDRE
2023-05-19 12:24:29 +02:00
parent e41e7a1fe4
commit 7856989866
12 changed files with 197 additions and 30 deletions

View File

@@ -2,6 +2,7 @@
using Microsoft.AspNetCore.Cors;
using Microsoft.AspNetCore.Mvc;
using skydiveLogs_api.DataContract;
using skydiveLogs_api.Domain;
using skydiveLogs_api.DomainBusiness.Interfaces;
using System.Collections.Generic;
@@ -49,12 +50,13 @@ namespace skydiveLogs_api.Controllers
}
// POST: api/Tunnel
//[HttpPost]
//[EnableCors]
//public void Post([FromBody] TunnelReq value)
//{
// _tunnelService.AddNewJumpType(_mapper.Map<Tunnel>(value));
//}
[HttpPost]
[EnableCors]
public void Post([FromBody] TunnelFlightReq value)
{
_tunnelService.AddNewFlight(value.TunnelId,
_mapper.Map<TunnelFlight>(value));
}
// PUT: api/Tunnel/5
//[HttpPut("{id}")]