Exemplo n.º 1
0
        public async Task <IActionResult> GetUser([FromQuery] string id)
        {
            var person = await usersProvider.GetPersonByApplicationUserId(id);

            if (person == null)
            {
                return(NotFound("User not found"));
            }
            var personViewModel = mapper.Map <Person, PersonViewModel>(person);

            return(Ok(personViewModel));
        }