// GET: Autor/Details/5 public IActionResult Details(int?id) { if (id == null) { return(NotFound()); } var autor = _autorDapperRepository.GetById(id); if (autor == null) { return(NotFound()); } return(View(autor)); }
private bool LivroExists(int id) => _autorDapperRepository.GetById(id) != null;