public void SetAllEntries(int size) { AllEntries = new SaleEntryGet() { SaleEntryGets = new List <SaleEntry>() }; //var uri = _configuration.GetSection("SaleEsApi").GetSection("Uri").Value; AllEntries = GetAsJsonSync <SaleEntryGet>(UriEs + "SaleEntry/all/0/" + size + "/time"); }
public async void SetAllEntries(int size) { var uri = _configuration.GetSection("SaleEsApi").GetSection("Uri").Value; AllEntries = await GetAsJson <SaleEntryGet>(uri + "SaleEntry/all/0/" + size + "/time"); }