src/MasterData/MasterData.Controllers/Controllers/DimensionStructureController.cs
/// <summary>
///     Controller method for updating a <see cref="DimensionStructure"/>.
/// </summary>
/// <param name="dimensionStructure">
///     A <see cref="DimensionStructure"/> payload object.
/// </param>
/// <param name="cancellationToken"> <see cref="CancellationToken"/>. </param>
/// <returns> A <see cref="Task{TResult}"/> representing the result of the asynchronous operation. </returns>
Controller method for updating a .
Controller method for updating a .
[HttpPut]
        [Route(MasterDataApi.DimensionStructure.V1.Update)]
        [ProducesResponseType(StatusCodes.Status200OK)]
        [ProducesResponseType(StatusCodes.Status400BadRequest)]
        public async Task<ActionResult<DimensionStructure>> UpdateAsync(
            DimensionStructure dimensionStructure,
            CancellationToken cancellationToken = default)
        {
            try
            {
                DimensionStructure result = await _masterDataBusinessLogic
                   .MasterDataDimensionStructureBusinessLogic.UpdateAsync(dimensionStructure, cancellationToken)
                   .ConfigureAwait(false);
                return Ok(result);
            }
            catch (Exception e)
            {
                return BadRequest(e);
            }
        }
[ HttpPut ] [ Route ( MasterDataApi . DimensionStructure . V1 . Update ) ] [ ProducesResponseType ( StatusCodes . Status200OK ) ] [ ProducesResponseType ( StatusCodes . Status400BadRequest ) ] public async Task < ActionResult < DimensionStructure > > UpdateAsync ( DimensionStructure dimensionStructure , CancellationToken cancellationToken = default ) { try { DimensionStructure result = await _masterDataBusinessLogic . MasterDataDimensionStructureBusinessLogic . UpdateAsync ( dimensionStructure , cancellationToken ) . ConfigureAwait ( false ) ; return Ok ( result ) ; } catch ( Exception e ) { return BadRequest ( e ) ; } }
Controller method for updating a .
Controller method for updating a .
A  representing the result of the asynchronous operation.
A representing the result of the asynchronous operation .
dimensionStructure
DimensionStructure
A  payload object.
A payload object .
cancellationToken
CancellationToken
None