Example #1
0
        public static void LoadDefault(OrderFilter filter, PaymentMethodViewModelFactory paymentMethodViewModelFactory)
        {
            filter.PaymentMethods.AddRange(paymentMethodViewModelFactory.GetPaymentMethodViewModels()
                                           .Select(x => new KeyValuePair <string, string>(x.SystemKeyword, x.PaymentMethodId.ToString())));

            filter.OrderStatuses.AddRange(OrderStatus.RegisteredStatuses.Select(x => new KeyValuePair <string, int>(x.Name, x.Id)));
        }
Example #2
0
 public OrderSearchBlockViewModel(OrderSearchBlock orderSearchBlock) : base(orderSearchBlock)
 {
     Orders = new List <OrderViewModel>();
     Filter = new OrderFilter();
 }