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

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

            return(Ok(result));
        }