Add current kunde usage

This commit is contained in:
MET18937 2023-06-25 21:10:00 +02:00
parent bbbefa43b4
commit 3356a91d47
4 changed files with 8 additions and 10 deletions

View File

@ -179,8 +179,8 @@
rabatte = await Http.GetFromJsonAsync<List<Rabatt>>("https://localhost:7076/api/Rabatte");
bestellungspositionHasMenuitems = await Http.GetFromJsonAsync<List<BestellungspositionHasMenuitem>>("https://localhost:7076/api/BestellungspositionHasMenuitems");
// test use the first kunde
kunde = kunden[1];
// get kunde from local storage
kunde = localStorage.GetItem<Kunde>("kunde");
// get the most recent rabatt, that are still valid (GueltigkeitBis)
// if there is no rabatt, set the rabatt to null

View File

@ -97,7 +97,8 @@
rabatte = await Http.GetFromJsonAsync<List<Rabatt>>("https://localhost:7076/api/Rabatte");
// test use the first kunde
kunde = kunden[1];
// get kunde from local storage
kunde = localStorage.GetItem<Kunde>("kunde");
// get the most recent rabatt, that are still valid (GueltigkeitBis)
// if there is no rabatt, set the rabatt to null

View File

@ -190,12 +190,8 @@
rabatte = await Http.GetFromJsonAsync<List<Rabatt>>("https://localhost:7076/api/Rabatte");
bestellungspositionHasMenuitems = await Http.GetFromJsonAsync<List<BestellungspositionHasMenuitem>>("https://localhost:7076/api/BestellungspositionHasMenuitems");
// use kudnde with id 2
kunde = kunden[1];
// get kunde from local storage
kunde = localStorage.GetItem<Kunde>("kunde");
// get all menuitemIds from bestellungspositions with the last date
foreach (Bestellungsposition bestellungsposition in bestellungspositions)

View File

@ -75,7 +75,8 @@
kunden = await Http.GetFromJsonAsync<List<Kunde>>("https://localhost:7076/api/kunden");
rabatte = await Http.GetFromJsonAsync<List<Rabatt>>("https://localhost:7076/api/Rabatte");
kunde = kunden[1];
// get kunde from local storage
kunde = localStorage.GetItem<Kunde>("kunde");
// get the most recent rabatt, that are still valid (GueltigkeitBis)
// if there is no rabatt, set the rabatt to null