Skip to content

Instantly share code, notes, and snippets.

@ArnisL
Created June 6, 2010 13:41
Show Gist options
  • Save ArnisL/427591 to your computer and use it in GitHub Desktop.
Save ArnisL/427591 to your computer and use it in GitHub Desktop.
protected override void ExecuteInContext(IUnitOfWorkContext context, RegisterNewAffairCmd cmd)
{
var affair=Affair.RegisterAffair(cmd.AffairId, cmd.Name, cmd.Location);
//how to save it? :/
context.
_repository.Save(affair);
context.Accept();
}
//this should work, right?
protected override void ExecuteInContext(IUnitOfWorkContext context, RegisterNewAffairCmd cmd)
{
Affair.RegisterAffair(cmd.AffairId, cmd.Name, cmd.Location);
context.Accept();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment