MVC - instead of creating a VM and passing in the values and drawing the view. i want to redirect to a URL using the values as parameters....so
instead of:
var model = new AvailabilityStepOneOfBookingVM(bookingQuery, 
                     ListOfBookings, chosenDate, foodPodId);
return View(model);
I want to load the URL:
http://localhost:40310/OrchardLocal/Food/FoodPodAvailability/
          StepOneOfBooking/(value of foodPodId)/(value of chosenDate)
redirect to action? directly from here or create a view and redirect from there?
You can use Redirect    
string url = string.Format("/OrchardLocal/Food/FoodPodAvailability" + 
                           "/StepOneOfBooking/{1}/{0}", chosenDate, foodPodId)
return Redirect(url);
                        Try this
 string url = string.Format("/OrchardLocal/Food/FoodPodAvailability" + 
                       "/StepOneOfBooking/{1}/{0}", chosenDate, foodPodId)
 return RedirectToAction(url);
                        If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With