Exemple #1
0
 public OrderService()
 {
     tableService = new TableService();
     fullPath     = Path.Combine(path, orderFile);
     if (File.Exists(fullPath))
     {
         Orders = Helper.ReadFile <List <Order> >(fullPath);
     }
     else
     {
         Orders = new List <Order>();
     }
 }
Exemple #2
0
 public ShopService()
 {
     tableService   = new TableService();
     orderService   = new OrderService();
     paymentService = new PaymentService();
 }
 public PaymentService()
 {
     tableService = new TableService();
     orderService = new OrderService();
 }