API módosítása
This commit is contained in:
@@ -39,6 +39,30 @@ namespace WorkFlowCheck.API.Controllers
|
||||
return retVal;
|
||||
}
|
||||
|
||||
[HttpGet("GetCheckPoints/{id}")]
|
||||
public async Task<ApiResponseDTO<CheckPointDTO>> GetAllCheckpointsAsync(int id)
|
||||
{
|
||||
var retVal = new ApiResponseDTO<CheckPointDTO>()
|
||||
{
|
||||
IsSuccess = true,
|
||||
};
|
||||
var checkPointListDTO = await _syncService.GetCheckPointAsync(id);
|
||||
|
||||
if (checkPointListDTO != null)
|
||||
{
|
||||
|
||||
retVal.IsSuccess = true;
|
||||
retVal.Data = checkPointListDTO;
|
||||
}
|
||||
else
|
||||
{
|
||||
retVal.IsSuccess = false;
|
||||
retVal.Errors.Add("No data!");
|
||||
}
|
||||
|
||||
return retVal;
|
||||
}
|
||||
|
||||
[HttpGet("GetAllEquipments")]
|
||||
public async Task<ApiResponseDTO<List<EquipmentDTO>>> GetAllEquipmentsAsync()
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user