public async Task <bool> Handle(UpdateTimeZonesStatusByIdsCommand command) { command.Ids.ThrowIfNullOrEmpty <int>("Empty list parameter", nameof(command.Ids)); command.UserId.ThrowIfNotPositiveNonZeroInt("Invalid user id parameter", nameof(command.UserId)); return(await _timeZoneRepository.UpdateTimeZonesStatusByIdsAsync(command.Ids, command.UserId, command.Status).ConfigureAwait(false)); }