コード例 #1
0
        // GET: Departamentos/Details/5
        public async Task <IActionResult> Details(int?id)
        {
            if (id == null)
            {
                return(NotFound());
            }

            var tipo = await _tipoService.FindByIdAsync(id.Value);

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

            return(View(tipo));
        }