public void TestGetMenuItemListAdmin() { var menuItemList = menuItemDao.GetMenuItemListAdmin(); foreach (var item in menuItemList) { Console.WriteLine(item); } }
public static void TestGetMenuItemListAdmin() { MenuItemDaoCollection menuItemDao = new MenuItemDaoCollection(); Console.WriteLine("Admin Menu Item List \n Id Name Price Active Date of Launch Category Free Delivery Action\n"); foreach (var item in menuItemDao.GetMenuItemListAdmin()) { Console.Write(item.Id + " "); Console.Write(item.Name + " "); Console.Write(item.Price + " "); Console.Write(item.Active ? "Yes " : "No "); Console.Write(item.DateOfLaunch + " "); Console.Write(item.Category + " "); Console.Write(item.FreeDelivery ? " Yes" : " No"); Console.WriteLine(); } Console.WriteLine(); }