Ejemplo n.º 1
0
        public void CreateContact(String displayName, string address, string firstName, string lastName, string telephone, string note, out String Id)
        {
            var c = new Contact(displayName)
                            {
                                Address = address,
                                FirstName = firstName,
                                LastName = lastName,
                                Telephone1 = telephone,
                                Note = note
                            };

            contactDataStore.Insert(c);

            contactDataStore.Refresh();

            Id = c.Id;
        }
Ejemplo n.º 2
0
 public void Update(Contact contact)
 {
     Check.Require(contact != null, "contact must not be null");
     contactDataStore.Update(contact);
     contactDataStore.Refresh();
 }
Ejemplo n.º 3
0
 public void Insert(Contact contact)
 {
     Check.Require(contact != null,"contact must not be null");
     contactDataStore.Insert(contact);
     contactDataStore.Refresh();
 }