I have a POST method that returns me to my summary page that looks like this
public ActionResult SpecialOrderSelection(ItemViewModel model)
{
if (ModelState.IsValid)
{
JobOrder jobOrder = db.JobOrders.Find(model.Id);
if (jobOrder == null)
{
return HttpNotFound();
}
ViewBag.JobOrderID = jobOrder.ID;
}
return SpecialOrderSummary(model);
}
And here is my Summary GET method
public ActionResult SpecialOrderSummary(ItemViewModel model)
{
return View("SpecialOrderSummary", model);
}
It sends me to my SpecialOrderSummary View Page, however the URL still displays as what my POST method is and not my GET. Also on every refresh it goes to the post first.
Why is this?