コード例 #1
0
        // 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));
        }
コード例 #2
0
 private bool LivroExists(int id) =>
 _autorDapperRepository.GetById(id) != null;