示例#1
0
        public async Task <ActionResult <Person> > Get(int id)
        {
            Person person = await personDataService.GetById(id);

            if (person == null)
            {
                return(new NotFoundResult());
            }

            return(Ok(person));
        }