static async Task Main(string[] args) { // 909 stores Systembolaget[] all = await SystembolagetFile.ReadAll(); Demo(all); }
public static async Task <Systembolaget[]> ReadAll() { using FileStream stream = File.OpenRead(GetPath()); SystembolagetFile fileContent = await JsonSerializer.DeserializeAsync <SystembolagetFile>(stream); return(fileContent.ButikOmbud);