c# - redirect from action inside controller? -
mvc - instead of creating vm , passing in values , drawing view. want redirect url using values parameters....so
instead of:
var model = new availabilitysteponeofbookingvm(bookingquery, listofbookings, chosendate, foodpodid); return view(model);
i want load url:
http://localhost:40310/orchardlocal/food/foodpodavailability/ steponeofbooking/(value of foodpodid)/(value of chosendate)
redirect action? directly here or create view , redirect there?
you can use redirect
string url = string.format("/orchardlocal/food/foodpodavailability" + "/steponeofbooking/{1}/{0}", chosendate, foodpodid) return redirect(url);
Comments
Post a Comment