public async Task <IActionResult> DeleteConfirmed(int id) { var fabricante = await fabricanteRepository.FindByIdAsync(id); await fabricanteRepository.RemoveFabricanteAsync(fabricante); return(RedirectToAction(nameof(Index))); }