Exemplo n.º 1
0
        private void ValidateLottery(StockListItem stockList)
        {
            if (stockList.PurchaseWay != PurchaseEnum.Lottery)
            {
                return;
            }
            LotterySaleManagmentTicket lottery = DataLayerInstance.GetLotteryByProductID(stockList.Product.SystemId);

            lottery.InformCancel(syncher);
            DataLayerInstance.EditLotteryInDatabase(lottery);
        }
Exemplo n.º 2
0
        private void HandleIfLottery(StockListItem stockListItem)
        {
            if (stockListItem.PurchaseWay != PurchaseEnum.Lottery)
            {
                return;
            }
            LotterySaleManagmentTicket lotteryManagment = DataLayerInstance.GetLotteryByProductID(stockListItem.Product.SystemId);

            lotteryManagment.InformCancel(syncher);
            DataLayerInstance.RemoveLottery(lotteryManagment);
        }