Brandon, Do you have an actionresult defined for Details? If so what does this look like? Also, do you have a details.aspx page defined in your Views?
Cheers, Alistair On 30 July, 07:04, Brandon Betances <[email protected]> wrote: > Ok here is where it gets confusing. The following code works. > public ActionResult Edit(int id) > { > Dinner dinner = dinnerRepository.GetDinner(id); > return View(dinner); > } > > but this does not. > > [AcceptVerbs(HttpVerbs.Post)] > public ActionResult Edit(int id, FormCollection formValues) > { > Dinner dinner = dinnerRepository.GetDinner(id); > UpdateModel(dinner); > dinnerRepository.Save(); > return RedirectToAction("Details", new { id = dinner.DinnerID }); > } > > Which doesn't make since because it's obvious that the Edit view exists, and > so does the Details view. Here's my 404 error. > > *The resource cannot be found.**Description: *HTTP 404. The resource you are > looking for (or one of its dependencies) could have been removed, had its > name changed, or is temporarily unavailable. Please review the following > URL and make sure that it is spelled correctly. > > *Requested URL: */Dinners/Edit/4 > > This seems technically impossible to me unless I missed a BIG step?
