예제 #1
0
        // GET: Pessoas/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var pessoa = await _context.GetById((int)id);

            if (pessoa == null)
            {
                return(NotFound());
            }

            return(View(pessoa));
        }