Пример #1
0
        public async Task <IActionResult> GetByIdAsync([FromRoute] int id)
        {
            var response = await _personAppService.GetByIdAsync(id);

            if (response == null)
            {
                return(NotFound());
            }

            return(Ok(response));
        }