public CsDealDetail SaveDealDetail(CsDealDetail detail)
 {
     if (!Authenticate()) return null;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.SaveDealDetail(detail);
 }
 public CsSubMenuItem SaveSubMenuItem(CsSubMenuItem subMenuItem)
 {
     if (!Authenticate()) return null;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     _bzMenuItem.SaveSubMenuItem(subMenuItem);
     return subMenuItem;
 }
 public CsMenuCategory GetMenuCategoryById(int id)
 {
     if (!Authenticate()) return null;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.GetMenuCategoryByID(id);
 }
 public CsSubMenuItem GetSubMenuItem(int id)
 {
     if (!Authenticate()) return null;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.GetSubMenuItem(id);
 }
 public CsMenuCategory[] GetDealsCategories()
 {
     if (!Authenticate()) return new CsMenuCategory[] {};
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     var allCategories = _bzMenuItem.GetAllMenuCategories();
     return allCategories.Where(c => c.IsDeal && c.IsActive).ToArray();
 }
 public CsDealDetail[] GetDealDetailsByCategory(int categoryId)
 {
     if (!Authenticate()) return new CsDealDetail[] {};
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.GetDealDetailsByCategory(categoryId, false);
 }
 public CsDealDetail GetDealDetailById(int id, bool includeLinkedMenu)
 {
     if (!Authenticate()) return null;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.GetDealDetailById(id, includeLinkedMenu);
 }
 public bool DeleteDealDetail(int id)
 {
     if (!Authenticate()) return false;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.DeleteDealDetail(id);
 }
 public bool SaveWebCategoryInclDealAndMaxDressing(CsMenuCategory category)
 {
     if (!Authenticate()) return false;
     if (_bzMenuItem == null)
     {
         _bzMenuItem = new MenuBusinessLogic(GetDbConnectionString());
     }
     return _bzMenuItem.SaveMenuCategory(category);
 }