From 704facbc6b9369da13a2e2718b0e908f8e04a20c Mon Sep 17 00:00:00 2001 From: Lorenz Stechauner Date: Mon, 18 Sep 2023 01:32:54 +0200 Subject: [PATCH] App: Use Ort insteas of Destination for Branch Location --- Elwig/App.xaml.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {