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)));
        }
 public OrderSearchBlockViewModel(OrderSearchBlock orderSearchBlock) : base(orderSearchBlock)
 {
     Orders = new List <OrderViewModel>();
     Filter = new OrderFilter();
 }
 public OrderHistoryViewModel(OrderHistoryPage currentContent) : base(currentContent)
 {
     PagingInfo = new PagingInfo();
     Filter     = new OrderFilter();
 } // currentContent must be OrderHistoryPage or OrderHistoryBlock