Last active
April 9, 2018 12:23
-
-
Save dan-harris/0fd613c8414d1a11f11a8bf744414659 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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