I need to go back to the list of notes per patient Id after the create method.
Code Csharp:public ActionResult Create(Notes note) { if (ModelState.IsValid) { db.Notes.Add(note); db.SaveChanges(); return RedirectToAction("Index"); } return View(course); }
how do you add a querystring to the RedirectToAction to get back to the list of notes on the Index per patient Id? It gives me an error asking for a patientId value based on the fact I have an Index(int patientId) in the Controller.
thanks



Reply With Quote

Bookmarks