public async Task HandleFetchDataAction(GetMyTermsAndConditions action, IDispatcher dispatcher) { var result = await _mediator.Send(new GetMyTermsAndConditionsQuery()); dispatcher.Dispatch(new GetMyTermsAndConditionsResultAction(result.IsHealthAndSafetyMeasuresAccepted, result.IsPrivacyActStatementAccepted)); }
public static MyTermsAndConditionsState ReduceGetMyTermsAndConditions(MyTermsAndConditionsState state, GetMyTermsAndConditions action) => new MyTermsAndConditionsState(isLoading: true, healthAndSafetyMeasuresAccepted: false, privacyActStatementAccepted: false);