public void GetAllDiscountCategoriesNameInStore(string storeName) { try { CheckIfStoreExistsAndActive(storeName); _shopper.ValidateCanBrowseMarket(); MarketLog.Log("StoreCenter", "User has enetered the system!"); string[] categories = _storeLogic.GetCategoriesWhichHaveDiscounts(storeName); Answer = new StoreAnswer(GetCategoriesDiscountStatus.Success, "All categories names have been granted!", categories); } catch (StoreException e) { MarketLog.Log("StoreCenter", ""); Answer = new StoreAnswer((GetCategoriesDiscountStatus)e.Status, e.GetErrorMessage()); } catch (DataException e) { Answer = new StoreAnswer((StoreEnum)e.Status, e.GetErrorMessage()); } catch (MarketException) { MarketLog.Log("StoreCenter", "no premission"); Answer = new StoreAnswer(GetCategoriesDiscountStatus.DidntEnterSystem, "User didn't enter the system!"); } }