public ActionResult Create([Bind("PaymentId, CardNo, Name , ExpiryDate, CvvCode")] Payment payment) { PaymentViewModel paymentViewModel = new PaymentViewModel(); if (ModelState.IsValid) { var id = TempData["NewBookingID"]; payment.BookingId = Convert.ToInt32(id); _payment.CreatePayment(payment); return(RedirectToAction("BookingComplete")); } return(View(paymentViewModel)); }