Ejemplo n.º 1
0
        public async Task HandleAsync(GetCustomerAction action, IDispatcher dispatcher)
        {
            var customer = await CustomerService.GetCustomer(action.Id);

            dispatcher.Dispatch(new ReceiveCustomerAction(customer));
        }
Ejemplo n.º 2
0
 public static State Reduce(State state, GetCustomerAction action)
 {
     return(new State(true, null));
 }