src/MasterData/MasterData.Controllers/Controllers/DimensionStructureController.cs
/// <summary>
///     Controller method for getting all inactive <see cref="DimensionStructure"/>s.
/// </summary>
/// <param name="cancellationToken"> <see cref="CancellationToken"/>. </param>
/// <returns> A <see cref="Task{TResult}"/> representing the result of the asynchronous operation. </returns>
Controller method for getting all inactive s.
Controller method for getting all inactive s .
[HttpGet]
        [Route(MasterDataApi.DimensionStructure.V1.GetInActives)]
        [ProducesResponseType(StatusCodes.Status200OK)]
        [ProducesResponseType(StatusCodes.Status400BadRequest)]
        public async Task<ActionResult<List<DimensionStructure>>> GetInActivesAsync(CancellationToken cancellationToken)
        {
            try
            {
                List<DimensionStructure> result = await _masterDataBusinessLogic
                   .MasterDataDimensionStructureBusinessLogic
                   .GetInactivesAsync(cancellationToken)
                   .ConfigureAwait(false);
                return Ok(result);
            }
            catch (Exception e)
            {
                return BadRequest(e);
            }
        }
[ HttpGet ] [ Route ( MasterDataApi . DimensionStructure . V1 . GetInActives ) ] [ ProducesResponseType ( StatusCodes . Status200OK ) ] [ ProducesResponseType ( StatusCodes . Status400BadRequest ) ] public async Task < ActionResult < List < DimensionStructure > > > GetInActivesAsync ( CancellationToken cancellationToken ) { try { List < DimensionStructure > result = await _masterDataBusinessLogic . MasterDataDimensionStructureBusinessLogic . GetInactivesAsync ( cancellationToken ) . ConfigureAwait ( false ) ; return Ok ( result ) ; } catch ( Exception e ) { return BadRequest ( e ) ; } }
Controller method for getting all inactive s.
Controller method for getting all inactive s .
A  representing the result of the asynchronous operation.
A representing the result of the asynchronous operation .
cancellationToken
CancellationToken
None