///<summary>Returns true if db success; otherwise returns false.</summary> private bool SetProximity(bool isProximal) { try { if (Extension == 0) { return(false); //There is most likely a setup issue or db connection problem. } Phones.SetProximity(isProximal, Extension); //We got here so everything worked ok. return(true); } catch (Exception e) { e.DoNothing(); } //We got here so something failed. return(false); }