Ejemplo n.º 1
0
    public DashboardViewModel GetDashboardViewModel()
    {
        var model = ViewModelFactory.CreateDashboardViewModel();
        var url   = urlHelper.Action("GetWaterTemperatureChart", "History")
                    var waterTemp = sensorDataService.GetWaterTemperatureFahrenheit().Value;

        model.Value = waterTemp;
        model.url   = url;
        return(model);
    }