Exemple #1
0
        public async Task <ActionResult <IList <Adult> > > GetAllAdults()
        {
            try
            {
                IList <Adult> adultsCopy = await adultRepo.GetAllAdults();

                return(Ok(adultsCopy));
            }
            catch (Exception e)
            {
                Console.WriteLine(e);
                return(StatusCode(500, e.Message));
            }
        }