Exemplo n.º 1
0
 public void Delete(Dinner dinner)
 {
     db.RSVPs.DeleteAllOnSubmit(dinner.RSVPs);
     db.Dinners.DeleteOnSubmit(dinner);
 }
Exemplo n.º 2
0
 public DinnerFormViewModel(Dinner dinner)
 {
     Dinner = dinner;
     Countries = new SelectList(PhoneValidator.Countries, dinner.Country);
 }
Exemplo n.º 3
0
 public void Add(Dinner dinner)
 {
     db.Dinners.InsertOnSubmit(dinner);
 }