예제 #1
0
        public async Task UpdateWeeks()
        {
            _weekSevice = new WeekService();
            var response = await _weekSevice.GetWeeks().ConfigureAwait(false);

            Weeks = response.Data.Weeks.GetRange(1, 10);
            OnPropertyChanged(nameof(Weeks));
        }
        public async Task GetShoppingInfo()
        {
            _weekService = new WeekService();

            var response = await _weekService.GetWeeks().ConfigureAwait(false);

            Weeks = response.Data.Weeks.Select(x =>
            {
                x.Shopper.FullName = x.Shopper.FirstName + " " + x.Shopper.LastName;
                return(x);
            }).OrderByDescending(x => x.WeekId).ToList();

            OnPropertyChanged("Weeks");
        }