Пример #1
0
        public Items AddLocationItem(string InName, string InItemDescription, string InItemAction, bool CanPickUp)
        {
            Items result = new Items(InName, InItemDescription, InItemAction, CanPickUp);

            LocationItems.Add(result);
            return(result);
        }
Пример #2
0
        public void OnGet(DateTime from, DateTime to)
        {
            From = from == DateTime.MinValue ? DateTime.Today.Subtract(TimeSpan.FromDays(31)) : from;
            To   = to == DateTime.MinValue ? DateTime.Today : to;
            if (To < from)
            {
                To = from.AddMonths(1);
            }

            LocationItems.Add(new SelectListItem("Alle", "all"));
            LocationItems.Add(new SelectListItem("Online", ""));
            foreach (var location in _shopifyLocationStorage.All)
            {
                LocationItems.Add(new SelectListItem(location.Name, location.Id.Value.ToString()));
            }
        }