Esempio n. 1
0
        private async void GetStatistics(object currentMonth)
        {
            var month = currentMonth as DateTime?;

            if (!month.HasValue)
            {
                return;
            }

            IsBusy = true;
            var response = await _forecastService.GetForecastStatistics(month.Value, _selectedUserHandler.UserId);

            if (response == null)
            {
                Statistics = null;
                IsBusy     = false;
                return;
            }

            Statistics = response.ForecastStatistics;
            IsBusy     = false;
        }