public async Task <IActionResult> Apagar(int id) { try { await _usuarioServico.ApagarAsync(id); return(RedirectToAction(nameof(Index))); } catch (IntegrityException e) { return(RedirectToAction(nameof(Error), new { message = e.Message })); } }