public bool SaveContact(Contact contact) { var ctx = HttpContext.Current; if (ctx != null) { try { DBProxy.saveContact(contact); return(true); } catch (Exception ex) { Console.WriteLine(ex.ToString()); return(false); } } return(false); }
public Contact[] GetAllContacts() { return(DBProxy.getAllContacts()); }