Add the datacontract model to have less data on some call

This commit is contained in:
Sébastien André
2021-04-19 18:32:44 +02:00
parent f671d0b1d0
commit 9a7b2c5ca3
6 changed files with 51 additions and 9 deletions

View File

@@ -49,6 +49,15 @@ namespace skydiveLogs_api.Controllers
return _mapper.Map<IEnumerable<DropZoneResp>>(result);
}
[HttpGet("GetSimple")]
[EnableCors]
public IEnumerable<DropZoneSimpleResp> GetSimple()
{
var result = _dropZoneService.GetAllDzs();
return _mapper.Map<IEnumerable<DropZoneSimpleResp>>(result);
}
// GET: api/DropZone/5
[HttpGet("{id}")]
[EnableCors]