public ActionResult DeleteConfirmed(int id) { Professor professor = professorService.BuscarProfessorId(id); professorService.RemoverProfessor(professor); return(RedirectToAction("Index")); }
public IActionResult Delete(int id) { _professorService.RemoverProfessor(id); return(RedirectToAction(nameof(Index))); }