asp.net viewdata
- by mazhar
public ActionResult AddDinner()
{
Dinner dinner = dinnerRepository.GetDinner(id);
ViewData["dinner"] = repository.AllDinners();
return View(dinner);
}
1) First of all both the dinner object and the ViewData["dinner"] is passing to the view?
2) Secondly how would I iterate over the ViewData["dinner"] in the view?