public IEnumerable<Document> GetAllDocuments(string token) { _conn = new Connection(_connectionString); try { _conn.OpenConnection(); return !string.IsNullOrEmpty(_conn.GetUsernameByToken(token)) ? _conn.GetAllDocuments() : null; } finally { _conn.CloseConnection(); } }