public async Task <IActionResult> DeleteConfirmed(int id) { await _sistemaRepository.Remover(id); return(RedirectToAction(nameof(Index))); }
public void Remover(int id) { _sistemaRepository.Remover(id); Commit(); }