public IActionResult Get(int id) { var author = _authorServices.Get(id).ToApiModel(); if (author == null) { return(NotFound()); } return(Ok(author)); }
public Author Get(int id) { return(_authorServices.Get(id)); }