Example #1
0
        public async Task <IActionResult> Get([FromRoute] int id)
        {
            var perfil = await _perfilAppService
                         .ObterPerfilPorIdUsarioAsync(id)
                         .ConfigureAwait(false);

            if (perfil is null)
            {
                return(NotFound());
            }

            return(Ok(perfil));
        }