Ejemplo n.º 1
0
        public async Task Initialize(DateTime initDate, string child, string productType)
        {
            Child       = child;
            ProductType = productType;

            await _orderHistoryService.LoadOrders();

            _relevantOrders = _orderHistoryService.Orders.Where(o => o.Child == this.Child && o.ProductType == this.ProductType).ToList();

            if (_schoolYearSettings == null)
            {
                _schoolYearSettings = await _holidayService.LoadSchoolSettings();
            }
            _initWeekStart = initDate.StartOfWeek(DayOfWeek.Sunday);
            LoadWeeks();
        }