public async Task <IActionResult> DeleteConfirmed(Guid id) { var emprestimo = await ObterEmprestimoJogoAmigo(id); if (emprestimo == null) { return(NotFound()); } await _emprestimoService.Remover(id); if (!OperacaoValida()) { return(View(emprestimo)); } return(RedirectToAction("Index")); }