Exemple #1
0
        public static Boolean AddContact(PrivateContact contacttoAdd)
        {
            var newconn = GetConnection ("WingsRecorder");

            var previouslist = newconn.Table<PrivateContact> ().FirstOrDefault (x => x.filteredContactNumber.Contains (contacttoAdd.filteredContactNumber));

            if (previouslist == null) {
                newconn.Insert (contacttoAdd);
                return true;
            } else {
                //Already contact present
                return false;
            }
        }
Exemple #2
0
 public static void DeleteContact(PrivateContact contactToDelete)
 {
     var newconn = GetConnection ("WingsRecorder");
     newconn.Delete (contactToDelete);
 }