Example #1
0
        public CallViewModel(ICallEndpoint callEndpoint, IEventAggregator events, MenuViewModel menu, ISignalrService signalrService)
        {
            this.callEndpoint   = callEndpoint;
            this.MenuViewModel  = menu;
            this.events         = events;
            this.signalrService = signalrService;

            AcceptCommand = new Command(Accept, _ => true);
        }
        public OrderDisplayViewModel(OrderModel order, IMapper mapper, ICallEndpoint callEndpoint, IEventAggregator events)
        {
            this.mapper       = mapper;
            this.order        = mapper.Map <OrderDisplayModel>(order);
            this.callEndpoint = callEndpoint;
            this.events       = events;
            this.newCartLine  = new CartLineModel {
                Quantity = 1, OrderId = order.Id
            };

            IncreaseProductQuantityCommand = new Command(IncreaseProductQuantity, _ => true);
            ReduceProductQuantityCommand   = new Command(ReduceProductQuantity, _ => true);
            RemoveProductFromCartCommand   = new Command(RemoveProductFromCart, _ => true);
        }
 public ProccesOrderEvent(OrderModel order, ICallEndpoint callEndpoint)
 {
     this.Order        = order;
     this.CallEndpoint = callEndpoint;
 }