//Check connection function public bool CheckConnection() { try { serviceUser.CheckConnection(); return(true); } catch { return(false); } }