I'm trying to pass two objects to a view. My Action:
public ActionResult Edit(int ? id)
{
if (id == null)
{
RedirectToAction("AllBook");
}
Books model = new Books();
model.GetUserAcount(); //A list for drop down list
model.GetTheBook(id); // Has a book information (int bookID, string BookTitl, int BookPrice)
return View(model);
}
I want to pass both of them to the view, any suggestions?