public async Task Handle(Commands.ChangeName command, IHandleContext ctx) { var account = await _uow.For <AccountType>().Get(command.AccountTypeId); account.ChangeName(command.Name); }
public void Handle(Commands.ChangeName command) { var account = _uow.R <AccountType>().Get(command.AccountTypeId); account.ChangeName(command.Name); }