public ActionResult GetBooking_Payments(int transactionId) { BookingPaymentsViewModel bookpay = new BookingPaymentsViewModel(); // BookingsViewModel bbViewModel=new BookingsViewModel(); try { decimal totalAmount = 0; bookpay.transId = transactionId; bookpay.Bookings = bookingsViewModel.GetListofBookings().SingleOrDefault(x => x.trn_Id == transactionId); totalAmount = bookingPayments.Get_TotalAmountBook(transactionId); bookpay.t_amtBooking = totalAmount; bookpay.t_addons = bookingPayments.getTotalAddons(transactionId); bookpay.cateringdiscount = bookingPayments.GetCateringDiscount(transactionId); bookpay.locationextcharge = transdetails.Get_extendedAmountLoc(transactionId); bookpay.generaldiscount = bookingPayments.getBookingTransDiscount(transactionId, totalAmount); bookpay.PaymentList = bookingPayments.GetPaymentDetaiilsBooking(transactionId); } catch (Exception e) { Console.WriteLine(e); throw; } return(View(bookpay)); }