Implementation of repositories and return infos
This commit is contained in:
@@ -31,7 +31,8 @@ namespace skydiveLogs_api.Controllers
|
||||
}
|
||||
|
||||
// GET: api/Aircraft/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
//[HttpGet("{id}", Name = "Get")]
|
||||
[HttpGet("{id}")]
|
||||
public AircraftResp Get(int id)
|
||||
{
|
||||
var result = _aircraftService.GetAircraftById(id);
|
||||
|
||||
@@ -32,7 +32,8 @@ namespace skydiveLogs_api.Controllers
|
||||
}
|
||||
|
||||
// GET: api/DropZone/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
//[HttpGet("{id}", Name = "Get")]
|
||||
[HttpGet("{id}")]
|
||||
public DropZoneResp Get(int id)
|
||||
{
|
||||
var result = _dropZoneService.GetDzById(id);
|
||||
|
||||
@@ -31,7 +31,8 @@ namespace skydiveLogs_api.Controllers
|
||||
}
|
||||
|
||||
// GET: api/Jump/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
//[HttpGet("{id}", Name = "Get")]
|
||||
[HttpGet("{id}")]
|
||||
public JumpResp Get(int id)
|
||||
{
|
||||
var result = _jumpService.GetJumpById(id);
|
||||
|
||||
@@ -31,7 +31,8 @@ namespace skydiveLogs_api.Controllers
|
||||
}
|
||||
|
||||
// GET: api/JumpType/5
|
||||
[HttpGet("{id}", Name = "Get")]
|
||||
//[HttpGet("{id}", Name = "Get")]
|
||||
[HttpGet("{id}")]
|
||||
public JumpTypeResp Get(int id)
|
||||
{
|
||||
var result = _jumpTypeService.GetJumpTypeById(id);
|
||||
|
||||
Reference in New Issue
Block a user