public IEnumerable <EmissionsRegionDataPoint> Get() { try { var databaseConnectionString = CloudConfigurationManager.GetSetting("SQLAzureDatabaseEntityFrameworkConnectionString"); using (var _objectModel = new SmartEnergyOM(databaseConnectionString)) { var result = _objectModel.FindAllEmissionsRegionsAsEmissionsRegionObjects(); var webResult = this.ConvertToEmissionsRegionDataPoints(result); return(webResult); } } catch (Exception e) { throw new Exception("Sorry - an exception occured executing the request"); } }