public async Task <ActionResult <Author> > GetById(int id) { var response = await _service.AuthorGetById(id); if (response != null) { return(Ok(response)); } else { return(NotFound()); } }