Skip to content

Instantly share code, notes, and snippets.

Created March 26, 2016 14:56
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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