Esempio n. 1
0
        public async Task <ActionResult <ICollection <Chore> > > GetAllAsync()
        {
            try
            {
                var result = await _choreService.GetAllAsync();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                return(StatusCode(StatusCodes.Status500InternalServerError));
            }
        }