public List<CompanySelectionModel> PerformCustomerSearch(string query)
        {
            var e = new ElasticSearchManager(_elasticSearchUrl);
            var client = e.CreateEsClient();

            var kunder = client.Search<KundeIndexItem>(d => d.
                Query(q =>
                    q.Bool(b =>
                        b.Should(
                            sh => sh.MatchPhrasePrefix(pf =>
                                pf.Field(f => f.Navn1).Query(query).Slop(2).Boost(3)
                                ),
                            sh => sh.MatchPhrasePrefix(pf =>
                                pf.Field(f => f.Adresse1).Query(query).Slop(2).Boost(1)
                                )
                            ).
                            MinimumShouldMatch(1)
                        )
                ).Size(200)
                );

            var kunderResult = kunder.Documents.Select(k => new CompanySelectionModel()
            {
                Id = Guid.Parse(k.Id),
                Name = k.Navn1,
                Address = k.Adresse1
            }).ToList();

            return kunderResult;
        }
        public KundeIndexItem Get(Guid kundeId)
        {
            var e = new ElasticSearchManager(_elasticSearchUrl);
            var client = e.CreateEsClient();

            var kundeRespone = client.Get<KundeIndexItem>(kundeId);

            return kundeRespone.Source;
        }