public ActionResult Delete(int id, FormCollection collection) { var reserva = reservaService.ObterReserva(id); try { // TODO: Add delete logic here reservaService.DeletarReserva(reserva); TempData["resultado"] = "Deletado"; TempData["nome"] = reserva.ReservaId; TempData["controller"] = "Reserva"; return(RedirectToAction("Index")); } catch { TempData["resultado"] = "Erro"; return(RedirectToAction("Index")); } }