public IContact GetNewContact() { IContact result = new Contact { Id = Guid.NewGuid(), Created = System.DateTime.Now }; Context.Contact.InsertOnSubmit(result as Contact); return result; }
private void OnContactListRemove(Contact entity) { SendPropertyChanging(null); entity.Client = null; SendPropertyChanged(null); }
private void OnContactListAdd(Contact entity) { SendPropertyChanging(null); entity.Client = this; SendPropertyChanged(null); }