Пример #1
0
        public IActionResult GetPerson(string id)
        {
            var guid = new Guid(id);

            var person = _personQueries.Get(guid);

            if (person == null)
            {
                return(NotFound($"No person found with id {id}."));
            }

            return(Ok(person));
        }