public void Handle(GetIntegrationClients command)
 {
     var items = _repository.GetAll<Client>();
     var dto =
         items.Select(
             s => ClientDto.Existing(s.Id, s.IsActive, s.Name, s.Email, s.ContactPerson, s.ContactNumber, s.ModifiedBy, s.DateModified)).ToList();
     command.Set(dto.Any() ? dto : Enumerable.Empty<ClientDto>());
 }
 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 SetIntegrationClients(IHandleGettingIntegrationClient handler, GetIntegrationClients command)
 {
     handler.Handle(command);
     SelectableIntegrationClients = command.Clients.ToList();
 }
 public static IEnumerable<LimClientView> Get(IHandleGettingIntegrationClient client)
 {
     var command = new GetIntegrationClients();
     client.Handle(command);
     return command.Clients.Select(s => new LimClientView(s));
 }