public IActionResult Get(int id)
        {
            var author = _authorServices.Get(id).ToApiModel();

            if (author == null)
            {
                return(NotFound());
            }
            return(Ok(author));
        }
Пример #2
0
 public Author Get(int id)
 {
     return(_authorServices.Get(id));
 }