public async Task <SuccessFailureDomain> Handle(DeleteCurrenciesByIdsCommand command) { command.Ids.ThrowIfNullOrEmpty <int>("Empty list parameter", nameof(command.Ids)); command.UserId.ThrowIfNotPositiveNonZeroInt("Invalid user id parameter", nameof(command.UserId)); return(await _crrencyRepository.DeleteCurrenciesByIdsAsync(command.Ids, command.UserId).ConfigureAwait(false)); }