Пример #1
0
        public IActionResult Get(int id)
        {
            var author = _rep.FindById(id);

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