using SushiBarListImplement.Models; using SushiBarListImplements.Models; namespace SushiBarListImplement { public class DataListSingleton { private static DataListSingleton? _instance; public List Ingredients { get; set; } public List Orders { get; set; } public List ListSushi { get; set; } public List Clients { get; set; } public List Implementers { get; set; } private DataListSingleton() { Ingredients = new List(); Orders = new List(); ListSushi = new List(); Clients = new List(); Implementers = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }