Skip to content

Instantly share code, notes, and snippets.

@dcomartin dcomartin/module.cs

Created Mar 26, 2016
What would you like to do?
public class Module : NancyModule
private readonly IMediator _mediator;
public Module(IMediator mediator)
_mediator = mediator;
Put["/demo/changepricinglevel/{MessageId:Guid}"] = ChangePricingLevel;
private dynamic ChangePricingLevel(dynamic o)
var cmd = this.Bind<ChangeCustomerPricingLevel>();
var envelop = new Envelope<ChangeCustomerPricingLevel>((Guid)o.MessageId, 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.