public void Handle(GetDataPlatformClients command)
        {
            var authorization = new[]
            {
                new KeyValuePair<string, string>("Authorization", "Token " + command.Token),
                new KeyValuePair<string, string>("Content-Type", "application/json")
            };

            var clients = command.Api.Get("", Endpoint);

            if (string.IsNullOrEmpty(clients))
            {
                _log.InfoFormat("Could not get a response on endpoint {0}", Endpoint);
                command.Set(Enumerable.Empty<DataPlatformClientDto>());
                return;
            }

            var dataPlatformClients = JsonConvert.DeserializeObject<IEnumerable<DataPlatformClientDto>>(clients).ToList();

            if (!dataPlatformClients.Any())
            {
                _log.InfoFormat("Could not get a deserialized list of information on endpoint {0}", Endpoint);
                command.Set(Enumerable.Empty<DataPlatformClientDto>());
                return;
            }

            command.Set(dataPlatformClients);
        }
 public void SetDataPlatformClients(IHandleGettingDataPlatformClient handler, GetDataPlatformClients command)
 {
     handler.Handle(command);
     SelectableDataPlatformClients = command.Clients.ToList();
 }