Hi,
I have an action Create() on my BooksController, where I create a new Book class. Part of this create process is to add one or more Authors, where Author is a class.
Here's the way I envision this working:
When user clicks "Create a new book" they are returned the Create view.
User can click "Add Author" button at any time. "Add Author" posts and saves all data in session, then RedirectToAction("Search", "Author", new { returnController="Books" returnAction="AddAuthor" } (pseudo)
That will return an AuthorId to the AddAuthor Action, which gets the new Book class out of session, updates with author, and redirects back to Create()
My question - is this the best way to handle a 'return to' with MVC? What if I wanted to have the Author Search include an 'add new author' option? I'd want to return to one URL, that returned the ID to a second URL. seems really confusing, could use some help. thanks.