public ActionResult CreateCater(int id, UserCatering userCater, BookingStatus booking, Payments payments) { if (booking.StageCheck(3, User.Identity.Name)) { TempData["Status"] = "You have already Completed this stage for your active booking."; return(RedirectToAction("Catering")); } // var userDecor = new UserCatering { CateringID = id, BookingStatusId = 1 };//change 1 userCater.CateringID = id; userCater.BookingStatusId = booking.getBookingStatusId(User.Identity.Name); booking.editStage(User.Identity.Name, 3); if (payments.PaymentCheck(User.Identity.Name)) { payments.AddPayment(booking.getBookingStatusId(User.Identity.Name)); } db.UserCaterings.Add(userCater); db.SaveChanges(); return(RedirectToAction("Payment")); }