コード例 #1
0
        public async Task <IActionResult> Get()
        {
            try
            {
                var results = await Task.Run(() => { return(summaryService.Read()); });

                return(Ok(results));
            }
            catch (Exception ex)
            {
                logger.LogError(ex.ToString());
                throw;
            }
        }