Created
March 12, 2016 20:19
-
-
Save dcomartin/dcc35ed2eb121179506a 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 Module : NancyModule | |
{ | |
private readonly IMediator _mediator; | |
public Module(IMediator mediator) | |
{ | |
_mediator = mediator; | |
Post["/demo/changepricinglevel"] = ChangePricingLevel; | |
} | |
private dynamic ChangePricingLevel(dynamic o) | |
{ | |
var cmd = this.Bind<ChangeCustomerPricingLevel>(); | |
_mediator.SendAsync(cmd); | |
return HttpStatusCode.NoContent; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment