예제 #1
0
        public bool RedeemTicketComplete(string barCode, string deviceID, ref int?voucherID, string clientSiteCode, string playerCardNo)
        {
            try
            {
                using (ExCommsSQLDataAccess DataContext = this.GetDataContext())
                {
                    ModuleProc PROC      = new ModuleProc("RedeemTicketComplete");
                    int?       retResult = -1;
                    int        result    = DataContext.esp_RedeemTicketComplete(barCode, deviceID, ref retResult, ref voucherID, clientSiteCode, playerCardNo);
                    if (retResult == 0)
                    {
                        return(true);
                    }

                    Log.Info(PROC, "RedeemTicketComplete returns " + retResult.ToString());
                    return(true);
                }
            }
            catch (Exception ex)
            {
                Log.Exception(ex);
                return(false);
            }
        }