Example #1
0
        public ActionResult Decade(int id)
        {
            //get kwh data
              string googleTableContent = _dataProvider.GoogleDataTableContent( new DateTime( 2010, 1, 1 ),
                                                             new DateTime( 2020, 1, 1 ), id,
                                                            E_EurKwh.kwh, E_TimeMode.year );
              var plant = _plantRepository.GetPlantById( id );
              var model = new PlantDayModel()
              {
            Plant = plant,
            GoogleData = googleTableContent,
            HeaderModel = GetHeaderModel( plant )
              };

              return View( model );
        }
Example #2
0
        public ActionResult Year(int id)
        {
            //get kwh data
              string googleTableContent = _dataProvider.GoogleDataTableContent( Utils.FirstDayOfYear(),
                                                            Utils.FirstDayNextYear(), id,
                                                            E_EurKwh.kwh, E_TimeMode.month );
              var plant = _plantRepository.GetPlantById( id );
              var model = new PlantDayModel()
              {
            Plant = plant,
            GoogleData = googleTableContent,
            HeaderModel = GetHeaderModel( plant )
              };

              return View( model );
        }