public QRCode MapToQRCode(QRCodeDto item)
        {
            var qrCode = new QRCode
            {
                Id          = item.Id,
                eVoucherId  = item.eVoucherId,
                QRCodeImg   = item.QRCodeImg,
                PromoCode   = item.PromoCode,
                CreatedBy   = item.CreatedBy,
                CreatedDate = item.CreatedDate
            };

            return(qrCode);
        }
        public QRCodeDto MapToeQRCodeDto(QRCode item)
        {
            var qrCodeDto = new QRCodeDto
            {
                Id           = item.Id,
                eVoucherId   = item.eVoucherId,
                QRCodeImg    = item.QRCodeImg,
                QRCodeImgURL = "data:image/jpg;base64," + Convert.ToBase64String((byte[])item.QRCodeImg),
                PromoCode    = item.PromoCode,
                CreatedBy    = item.CreatedBy,
                CreatedDate  = item.CreatedDate
            };

            return(qrCodeDto);
        }