//Details - Assincrono public async Task <IActionResult> Details(int?id) { if (id == null) { return(NotFound()); } var produto = await _comandaService.FindByIdAsync(id.Value); if (produto == null) { return(NotFound()); } return(View(produto)); }