public async Task Handle(Commands.Freeze command, IMessageHandlerContext ctx) { var account = await _uow.For <Account>().Get(command.AccountId); account.Freeze(); }
public void Handle(Commands.Freeze command) { var account = _uow.R <Account>().Get(command.AccountId); account.Freeze(); }