Skip to content

Instantly share code, notes, and snippets.

@dcomartin dcomartin/module.cs
Created Mar 12, 2016

Embed
What would you like to do?
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
You can’t perform that action at this time.