using FoodOrdersListImplement.Models; namespace FoodOrdersListImplement { public class DataListSingleton { private static DataListSingleton? _instance; public List Dishes { get; set; } public List Orders { get; set; } public List SetOfDishes { get; set; } private DataListSingleton() { Dishes = new List(); Orders = new List(); SetOfDishes = new List(); } public static DataListSingleton GetInstance() { if (_instance == null) { _instance = new DataListSingleton(); } return _instance; } } }