diff --git a/Elwig/App.xaml.cs b/Elwig/App.xaml.cs index f15e698..c988f95 100644 --- a/Elwig/App.xaml.cs +++ b/Elwig/App.xaml.cs @@ -82,7 +82,7 @@ namespace Elwig { Dictionary branches = new(); using (var ctx = new AppDbContext()) { - branches = ctx.Branches.ToDictionary(b => b.Name.ToLower(), b => (b.ZwstId, b.Name, b.PostalDest?.AtPlz?.Plz, b.PostalDest?.AtPlz?.Dest, b.Address, b.PhoneNr, b.FaxNr, b.MobileNr)); + branches = ctx.Branches.ToDictionary(b => b.Name.ToLower(), b => (b.ZwstId, b.Name, b.PostalDest?.AtPlz?.Plz, b.PostalDest?.AtPlz?.Ort.Name, b.Address, b.PhoneNr, b.FaxNr, b.MobileNr)); try { Client = new(ctx); } catch (Exception e) {