03. Applications/App.Api/Controllers/UserController.cs
/// <summary>
/// Gets user using his/her id.
/// </summary>
/// <param name="id">User id</param>
/// <returns></returns>
Gets user using his/her id.
Gets user using his / her id .
[HttpGet("{id}")]
        public async Task<IActionResult> GetById(Guid id)
        {
            var query = new GetUserByIdQuery(id);
            var userDto = await _mediator.Send(query);
            return userDto.ToActionResult();
        }
[ HttpGet ( " " ) ] public async Task < IActionResult > GetById ( Guid id ) { var query = new GetUserByIdQuery ( id ) ; var userDto = await _mediator . Send ( query ) ; return userDto . ToActionResult ( ) ; }
Gets user using his/her id.
Gets user using his / her id .
None
id
Guid
None