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

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