Ejemplo n.º 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)));
        }
Ejemplo n.º 2
0
 public OrderSearchBlockViewModel(OrderSearchBlock orderSearchBlock) : base(orderSearchBlock)
 {
     Orders = new List <OrderViewModel>();
     Filter = new OrderFilter();
 }