public IActionResult CartaoDebito(Reserva reserva, string txtHrAluguel, string nroCartaoDebito, string valorTotalPagamento, DateTime dtVeicDevolvido) { Reserva r = new Reserva(); r = GetReserva(); DateTime aux = DateTime.Now; if (string.IsNullOrWhiteSpace(nroCartaoDebito)) { TempData["MsgCartaoDebito"] = "Preencha o número do cartão de débito"; TempDataValores(txtHrAluguel, valorTotalPagamento, dtVeicDevolvido); return(RedirectToAction("Pagamento")); } aux = ValidaData(txtHrAluguel, dtVeicDevolvido, aux); reserva.DataVeiculoDevolvido = aux; _pagamentoDAO.PagamentoCartaoDebito(reserva, nroCartaoDebito, r, valorTotalPagamento); return(RedirectToAction("Index", "Cliente")); }