private void CreateCompanyObject(string symbol, JeffFerguson.Gepsio.XbrlDocument xbrlDoc, Dictionary <string, Object> yahooStats) { XbrlCompanyFilter compFilter = new XbrlCompanyFilter(); Company compToAdd = new Company(); compToAdd = compFilter.Populate(xbrlDoc, symbol); compToAdd.Industry = Convert.ToString(yahooStats["Industry"]); compToAdd.Sector = Convert.ToString(yahooStats["Sector"]); CompanyBL.Instance.UpdateCompany(compToAdd); }
private void CreateCompanyObject(string symbol, JeffFerguson.Gepsio.XbrlDocument xbrlDoc, Dictionary<string, Object> yahooStats) { XbrlCompanyFilter compFilter = new XbrlCompanyFilter(); Company compToAdd = new Company(); compToAdd = compFilter.Populate(xbrlDoc, symbol); compToAdd.Industry = Convert.ToString(yahooStats["Industry"]); compToAdd.Sector = Convert.ToString(yahooStats["Sector"]); CompanyBL.Instance.UpdateCompany(compToAdd); }