MVC 3 RedirectToAction Querystring

I need to go back to the list of notes per patient Id after the create method.

 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

Use the overload in the RedirectToAction. Something like this:

return RedirectToAction("Index", note.PatientID);

I see what you mean…thanks for the help