public async Task <IActionResult> Edit(int id) { var professor = await _professorRepositorio.PegarPeloId(id); if (professor == null) { return(NotFound()); } TempData["Professor"] = professor.Foto; return(View(professor)); }