コード例 #1
0
        public async Task <IActionResult> GetAll()
        {
            try
            {
                var res = await _itemService.GetAll();

                if (res == null)
                {
                    return(NotFound());
                }
                return(Ok(res));
            }
            catch (Exception ex)
            {
                return(DefaultError(ex));
            }
        }