Add Gear controller/service/repo and relations in db between Jumps and others objects

This commit is contained in:
Sébastien André
2019-11-22 23:19:17 +01:00
parent 29740709c6
commit b9a29bcd79
12 changed files with 178 additions and 13 deletions

View File

@@ -42,7 +42,11 @@ namespace skydiveLogs_api.Controllers
[HttpPost]
public void Post([FromBody] JumpReq value)
{
_jumpService.AddNewJump(_mapper.Map<Jump>(value));
_jumpService.AddNewJump(value.AircraftId,
value.DropZoneId,
value.JumpTypeId,
value.GearId,
_mapper.Map<Jump>(value));
}
// PUT: api/Jump/5