コード例 #1
0
        public async Task <ActionResult <Adult> > DeleteAdult(int id)
        {
            var adult = dbAction.GetAdultById(id);

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

            dbAction.DeleteAdult(adult);

            return(adult);
        }