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