Пример #1
0
        public async Task <IActionResult> Get(int id)
        {
            var study = await _repository.FindAsync(id);

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

            return(Ok(study));
        }
Пример #2
0
        public async Task <IActionResult> Get(int id)
        {
            var study = await _repository.FindAsync(id);

            if (study == null)
            {
                _log.LogDebug("No studies found. Return 404 NotFound");
                return(NotFound());
            }

            return(Ok(study));
        }