src/MasterData/MasterData.Controllers/Controllers/SourceFormatController.cs
/// <summary>
///     Returns all available <see cref="SourceFormat"/> in the system.
/// </summary>
/// <returns> A <see cref="Task{TResult}"/> representing the result of the asynchronous operation. </returns>
Returns all available  in the system.
Returns all available in the system .
[HttpGet]
        [Route(MasterDataApi.SourceFormat.V1.GetAll)]
        [ProducesResponseType(StatusCodes.Status200OK)]
        [ProducesResponseType(StatusCodes.Status400BadRequest)]
        public async Task<ActionResult<List<SourceFormat>>> GetAllAsync()
        {
            try
            {
                List<SourceFormat> result = await _masterDataBusinessLogic.MasterDataSourceFormatBusinessLogic
                   .GetSourceFormatsAsync()
                   .ConfigureAwait(false);
                return Ok(result);
            }
            catch (Exception e)
            {
                return BadRequest(e);
            }
        }
[ HttpGet ] [ Route ( MasterDataApi . SourceFormat . V1 . GetAll ) ] [ ProducesResponseType ( StatusCodes . Status200OK ) ] [ ProducesResponseType ( StatusCodes . Status400BadRequest ) ] public async Task < ActionResult < List < SourceFormat > > > GetAllAsync ( ) { try { List < SourceFormat > result = await _masterDataBusinessLogic . MasterDataSourceFormatBusinessLogic . GetSourceFormatsAsync ( ) . ConfigureAwait ( false ) ; return Ok ( result ) ; } catch ( Exception e ) { return BadRequest ( e ) ; } }
Returns all available  in the system.
Returns all available in the system .
A  representing the result of the asynchronous operation.
A representing the result of the asynchronous operation .