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; } }
public static void DeleteContact(PrivateContact contactToDelete) { var newconn = GetConnection ("WingsRecorder"); newconn.Delete (contactToDelete); }