public async Task Load() { try { await get.LoadFromJson(); } catch (Exception e) { string error = e.Message; } }
public async Task LoadMembers() { try { await getMembers.LoadFromJson(); MemberCatalog = getMembers.ItemsCatalog; } catch (Exception e) { string error = e.Message; } }
//Loading method public async void LoadCustomers() //serialization { try { CustomersCatalogVm = await _getMembers.LoadFromJson(); } catch (Exception e) { foreach (Customer customer in CustomersCatalogVm) { var drink = customer; } string error = e.Message; } }