// GET: Avaliacao/Delete/5 public async Task <IActionResult> Delete(int?id) { if (id == null) { return(NotFound()); } var avaliacao = await _avaliacaoService.ObterComRelacoesAsync(id.Value); if (avaliacao == null) { return(NotFound()); } return(View(avaliacao)); }