public IActionResult EditConfirmed(MappingPaymentToken mappingPaymentToken)

        {
            if (ModelState.IsValid)
            {
                try
                {
                    _repository.Update(mappingPaymentToken);
                    _unitOfWork.Commit();
                }
                catch (DbUpdateConcurrencyException)
                {
                    if (!MappingPaymentTokenExists(mappingPaymentToken.TokenReferenceId, mappingPaymentToken.TokenRequestorId))
                    {
                        return(NotFound());
                    }
                    else
                    {
                        throw;
                    }
                }
                return(RedirectToAction(nameof(Index)));
            }
            ViewData["TokenRequestorId"] = new SelectList(_tr.FindAll(), "TokenRequestorId", "TokenRequestorId", mappingPaymentToken.TokenRequestorId);
            return(View(mappingPaymentToken));
        }
        public IActionResult Create([Bind("TokenRequestorId,TokenReferenceId,Bin,Panlength,Panciphered,PanexpirationDateCiphered,TokenLength,PaymentToken,RangeCounter,TokenReferenceIdlength,TokenExpirationDate,Atc,EventCounter,TimerEventExpiration,Last4DigitsPan,CodeValidation,TokenLocation,EmvkeyIndex,PcikeyIndex,AccountAndCardHolderDataAndDeviceDataCiphered")] MappingPaymentToken mappingPaymentToken)
        {
            if (ModelState.IsValid)
            {
                _repository.Add(mappingPaymentToken);
                _unitOfWork.Commit();

                return(RedirectToAction(nameof(Index)));
            }
            ViewData["TokenRequestorId"] = new SelectList(_tr.FindAll(), "TokenRequestorId", "TokenRequestorId", mappingPaymentToken.TokenRequestorId);
            return(View(mappingPaymentToken));
        }