Skip to content

Instantly share code, notes, and snippets.

@dan-harris
Last active April 9, 2018 12:23
Show Gist options
  • Save dan-harris/0fd613c8414d1a11f11a8bf744414659 to your computer and use it in GitHub Desktop.
Save dan-harris/0fd613c8414d1a11f11a8bf744414659 to your computer and use it in GitHub Desktop.
public class ProductActionDispatcher : IApuxActionDispatcher
{
....
public IApuxActionResult Dispatch(ApuxAction<JToken> actionRequest)
{
switch (actionRequest.Type)
{
....
case ProductActions.GET_BY_ID:
{
return _productActionHandler.GetById(new GetByIdAction(actionRequest.Payload));
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment