private async Task <ActionResult> GetAllAsync()
        {
            try
            {
                var result = await readInteractor.GetSomethingListAsync();

                return(Ok(result));
            }
            catch (Exception ex)
            {
                logger.LogError(ex, "An error occurred");
                throw;
            }
        }
Example #2
0
        private async Task <ActionResult> GetAllAsync()
        {
            var result = await readInteractor.GetSomethingListAsync();

            return(Ok(result));
        }