コード例 #1
0
        public IActionResult Get()

        {
            try

            {
                var obj = db.GetDetails();

                if (obj == null)
                {
                    return(NotFound());
                }

                return(Ok(obj));
            }

            catch (Exception)

            {
                return(BadRequest());
            }
        }