public void UpdateDBEntry(PhonebookEntry entry, PhonebookEntryViewModel entryViewModel)
 {
     entry.FirstName = entryViewModel.FirstName;
     entry.LastName = entryViewModel.LastName;
     entry.Type = entryViewModel.Type;
     this.data.PhonebookEntries.Update(entry);
     this.data.SaveChanges();
 }
 public void DeleteDBEntry(PhonebookEntry entry)
 {
     this.data.PhonebookEntries.Delete(entry);
     this.data.SaveChanges();
 }
 public void CreateDBEntry(PhonebookEntry entry)
 {
     this.data.PhonebookEntries.Add(entry);
     this.data.SaveChanges();
 }