using SushiBarListImplement.Models; namespace SushiBarListImplement { public class DataListSingleton { private static DataListSingleton _instance; public List Components { get; set; } public List Orders { get; set; } public List Sushis { get; set; } private DataListSingleton() { Components = new List(); Orders = new List(); Sushis = new List(); } public static DataListSingleton GetInsance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }