Ejemplo n.º 1
0
        public async Task <IActionResult> Get(int id)
        {
            var result = await personsRepository.GetPersonByIdAsync(id);

            if (result is null)
            {
                return(NotFound(id));
            }

            return(Ok(result));
        }