Esempio n. 1
0
 public MenuItem GetMenuItemByName(string menuItemName)
 {
     try
     {
         return menuItemDAO.DB_GetMenuItemByName(menuItemName);
     }
     catch (Exception e)
     {
         Console.WriteLine($"Could not get menuItem with name {menuItemName}: " + e.Message);
         return new MenuItem(0, 1, "errorMenuItem5", 69, 0, false);
     }
 }