public void OpenConnection() { try { connection.Open(); } catch (SqlExceptions ex) { throw ex = new SqlExceptions("Error while connectiong"); } }
public void CloseConnection() { try { connection.Close(); } catch (SqlExceptions ex) { throw ex = new SqlExceptions("Error while disconnectiong"); } }