示例#1
0
        public async Task <IActionResult> Get()
        {
            try {
                var result = await _trackService.GetAsync();

                if (result == null)
                {
                    return(NotFound());
                }
                return(Ok(result));
            } catch (System.Exception e) {
                return(BadRequest(e.Message));
            }
        }