public static List<ApiConfiguration> Get(IHandleGettingConfiguration configuration, IHandleGettingIntegrationClient client)
 {
     var config = new GetAllConfigurations();
     var clientCommand = new GetIntegrationClients();
     configuration.Handle(config);
     client.Handle(clientCommand);
     return config.Configurations.Select(s => new ApiConfiguration(s, clientCommand.Clients.FirstOrDefault(w => w.Id == s.ClientId))).ToList();
 }
 public void Handle(GetAllConfigurations command)
 {
     var items = _repository.GetAll<Configuration>();
     var dto =
         items.Select(
             s =>
                 ConfigurationDto.Existing(s.Id, s.ConfigurationKey, s.ActionType.Id, s.IntegrationType.Id, s.FrequencyType.Id, s.Client.Id, s.IsActive,
                     s.ActionType.Type,s.FrequencyType.Type,s.IntegrationType.Type))
             .ToList();
     command.Set(dto);
 }