private async Task GetDateSummaryAsync(DateTime date) { try { IsLoading = true; var model = await _restApiService.GetDateSummaryAsync(AppSettings.DefaultTimeZone, date); if (model != null) { var results = model .OrderBy(m => m.Date) .ToList(); Summary.Clear(); foreach (var result in results) { Summary.Add(result); } LoadTemperaturePlot(); LoadHumidityemperaturePlot(); } } finally { IsLoading = false; } }
private void OnSave() { this.user.ValidateAll(); Summary.Clear(); var summary = this.user.GetErrorSummary(); foreach (var errors in summary.Values) { foreach (var error in errors) { Summary.Add(error); } } }