Create a gist now

Instantly share code, notes, and snippets.

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