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