public async Task HandleAsync(GetCustomerAction action, IDispatcher dispatcher) { var customer = await CustomerService.GetCustomer(action.Id); dispatcher.Dispatch(new ReceiveCustomerAction(customer)); }
public static State Reduce(State state, GetCustomerAction action) { return(new State(true, null)); }