예제 #1
0
        public async Task <ActionResult <Adult> > PostAdult(Adult adult)
        {
            await dbAction.InsertAdult(adult);

            return(CreatedAtAction(nameof(GetAdult), new { id = adult.Id }, adult));
            //  return CreatedAtAction("GetAdult", new { id = adult.Id }, adult);
        }