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

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