public async Task <List <CObject> > GetNavigatorNodes_Children(string db, string ProjectUID, string layer, string lcid, string target, string viewstate, string parent = null) { var tmp = await m_ComosWebOffline.GetNavigatorNodes_Children(db, ProjectUID, layer, lcid, target, viewstate, parent); if (tmp == null || tmp.Count == 0) { tmp = await m_ComosWebOnline.GetNavigatorNodes_Children(db, ProjectUID, layer, lcid, target, viewstate, parent); if (tmp != null && tmp.Count > 0) { string url = null; if (string.IsNullOrEmpty(parent)) { url = m_Url + "dbs/" + db + "/projects/" + ProjectUID + "/navigator/nodes/" + target + "/children?lcid=" + lcid + "&overlayid=" + layer + "&view=" + viewstate; } else { url = m_Url + "dbs/" + db + "/projects/" + ProjectUID + "/navigator/nodes/" + target + "/children?lcid=" + lcid + "&overlayid=" + layer + "&parent=" + parent + "&view=" + viewstate; } string output = Newtonsoft.Json.JsonConvert.SerializeObject(tmp); m_Database.WriteUrlCache(url, output); } } return(tmp); }