public IActionResult Get(int id) { var author = _rep.FindById(id); if (author != null) { return(Ok(author)); } else { return(NotFound()); } }
public IActionResult Get(int id) { var author = _rep.FindById(id); if (author != null) { return(Ok(author)); } else { return(NotFound()); } }