public async Task <List <CProject> > GetProjects(CDatabase database) { var content = await communicationManager.GetProjects(database, m_Url, m_Session.Id, serverName); if (content == null) { return(null); } JArray json = JArray.Parse(content); if (json == null) { return(null); } List <CProject> projects = new List <CProject>(); projects = JsonConvert.DeserializeObject <List <CProject> >(json.ToString()); foreach (var project in projects) { project.Database = database.Key; } return(projects); }