I have been reading this book (Professional.ASP.NET.MVC.2.Scott.Hanselman) to start using MVC, so far its going good an I am enjoying it very much. I have been following the steps described in the book to create the NerdDinner application.
I have a problem with the deleted method, the line the error is on is below and is in BOLD. Can somebody explain why I am getting this error and what is the cause and how can I prevent this from happening in the future.
public void Delete(Dinner dinner)
foreach (var rsvp in dinner.RSVPs)
Also have a look at the screen shot for a detailed error description.
View Complete Post