private string GenerateGoogleDataTableContent(int plantId, E_EurKwh yMode, SortedKwhTable kwhTable, E_TimeMode xMode) { DatatableConverter dtConverter = new DatatableConverter(); //include money per kwh mapping if neccessary if (yMode == E_EurKwh.money) { IncludeEuroPerKwhMapping(plantId, dtConverter); } //create google data table content string return dtConverter.BuildGoogleDataTable(kwhTable, yMode, xMode); }
private void IncludeEuroPerKwhMapping(int plantId, DatatableConverter dtConverter) { var inverters = _plantRepository.GetAllInvertersByPlant(plantId); foreach (var inverter in inverters) { dtConverter.AddEuroPerKwH(inverter.PublicInverterId, inverter.EuroPerKwh); } }