Ejemplo n.º 1
0
        public bool RedeemTicketStart(ref string barcode, string stock_No, string siteCode, int isTISPrintedTicket, string playerCardNo, ref int?retAmount, ref int?retResult, ref int?TicketType)
        {
            bool   bRet       = false;
            string retBarcode = string.Empty;

            try
            {
                using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
                {
                    int?iRetResult = 0;
                    iRetResult = DataContext.RedeemTicketStart(barcode, stock_No, siteCode, isTISPrintedTicket, playerCardNo, ref retAmount, ref retResult, ref retBarcode, ref TicketType);

                    barcode = retBarcode;
                    bRet    = (retResult == 0 && retAmount > 0);
                }
            }
            catch (Exception ex)
            {
                Log.Exception(ex);
                bRet = false;
            }

            return(bRet);
        }