public void EditerEvenement(EvenementWPF b) { if (Evenements.Count() > 0) { for (int i = 0; i < Evenements.Count(); i++) { if (Evenements[i].eventId == b.eventId) { Evenements[i] = b; i = Evenements.Count() + 2; } } } DalEvent.Update(b.GetEvenementDal()); }
public void AjouterEvent(EvenementWPF a) { a.eventId = DalEvent.Create(a.GetEvenementDal()); //a.eventId = DalEvent.GetAll().LastOrDefault().eventId; Evenements.Add(a); }