public static bool DeleteContact(Int32 contactId) { using (var contactManager = new ContactManager(null)) { try { contactManager.DeleteContact(contactId); return true; } catch { return false; } } }