public async Task Init() { if (KupciList.Count == 0) { var kupciList = await _kupciService.Get <List <Kupci> >(null); foreach (var kupac in kupciList) { KupciList.Add(kupac); } } if (SelectedKupac != null) { RSII25092020SearchRequest search = new RSII25092020SearchRequest(); search.KupacId = SelectedKupac.KupacId; search.PotencijalnoMaliciozan = PotencijalnoMaliciozan; search.DatumOd = Od; search.DatumDo = Do; var list = await _RSIIService.Get <IEnumerable <RSII25092020> >(search); RSIIList.Clear(); foreach (var racuni in list) { //if (racuni.KupacId == tk[0].KupacId) RSIIList.Add(racuni); } } }
public async Task Init() { if (KupciList.Count == 0) { var list = await _serviceKupci.Get <List <Kupci> >(null); foreach (var tarifniStavovi in list) { KupciList.Add(tarifniStavovi); } } }