Beispiel #1
0
        public async Task <IActionResult> ReadAsync(int id)
        {
            var result = await _repo.FindAsync(id);

            if (result == null)
            {
                return(NotFound());
            }
            return(Ok(result));
        }