Esempio n. 1
0
        public static bool SaveMenu(ShopMenuInfo menu)
        {
            ShopMenuDao shopMenuDao = new ShopMenuDao();

            ShopMenuHelper.RemoveMenuCache(menu);
            return(shopMenuDao.SaveMenu(menu));
        }
Esempio n. 2
0
        public static bool UpdateMenu(ShopMenuInfo menu)
        {
            ShopMenuDao shopMenuDao = new ShopMenuDao();

            ShopMenuHelper.RemoveMenuCache(menu);
            return(shopMenuDao.Update(menu, null));
        }
Esempio n. 3
0
        public static bool DeleteMenu(int menuId)
        {
            ShopMenuInfo menu = ShopMenuHelper.GetMenu(menuId);

            if (menu == null)
            {
                return(false);
            }
            ShopMenuDao shopMenuDao = new ShopMenuDao();
            bool        result      = shopMenuDao.DeleteMenu(menuId);

            ShopMenuHelper.RemoveMenuCache(menu);
            return(result);
        }