mirror of
https://github.com/yummy4friends/y4f.git
synced 2024-12-27 07:38:21 +01:00
Add current kunde usage
This commit is contained in:
parent
bbbefa43b4
commit
3356a91d47
@ -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
|
||||
|
@ -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
|
||||
|
@ -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)
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user