public RTOnlineTicketDetail GetVoucherAmountAndStatusForMultipleTicket(RTOnlineTicketDetail TicketDetailEntity) { try { LogManager.WriteLog("Inside GetVoucherAmountAndStatusForMultipleTicket", LogManager.enumLogLevel.Info); LinqDataAccessDataContext _LinqDB = new LinqDataAccessDataContext(CommonDataAccess.TicketingConnectionString); List<rsp_ValidateVoucherForMultipleVoucherRedemptionResult> lstValidatedVoucherDetails = null; lstValidatedVoucherDetails = _LinqDB.ValidateVoucherForMultipleVoucherRedemption(TicketDetailEntity.TicketString).ToList(); if (lstValidatedVoucherDetails != null) { TicketDetailEntity.TicketStatusCode = lstValidatedVoucherDetails[0].iStatus; TicketDetailEntity.TicketValue = Convert.ToDouble(lstValidatedVoucherDetails[0].Amount); TicketDetailEntity.RedeemedAmount = lstValidatedVoucherDetails[0].Amount; TicketDetailEntity.PrintedDate = lstValidatedVoucherDetails[0].PrintDate.Value; TicketDetailEntity.iVoucherid = lstValidatedVoucherDetails[0].VoucherID; LogManager.WriteLog("The Ticket details for the barcode :-- " + TicketDetailEntity.TicketString + "are" + " TicketStatusCode:-" + TicketDetailEntity.TicketStatusCode + "Ticket Amount :--" + TicketDetailEntity.TicketValue + "Voucher Id :--" + TicketDetailEntity.iVoucherid, LogManager.enumLogLevel.Info); } } catch (Exception ex) { ExceptionManager.Publish(ex); } return TicketDetailEntity; }