public GetTokenByIdResponse GetTokenById(int tokenId)
        {
            GetTokenByIdResponse response = new GetTokenByIdResponse();

            try
            {
                var cuentaToken = new CuentaToken
                {
                    CuentaTokenId = 1,
                    Email = "*****@*****.**",
                    Token = "eyJ0eXAiOiJKV1QiLCJub25jZSI6IkFRQUJBQUFBQUFEWDhHQ2k2SnM2U0s4MlRzRDJQYjdyQ3pmaTh5X2JfT2ZNdVdpOEpNOFhoZnZrLThRcjBjMUFaYl9ndWxncGFFSzA5c20tZHJSN3BFQ2t4WUpvaDFhX28tNDZDUDFMcUhaV0RmSmpUM28tWXlBQSIsImFsZyI6IlJTMjU2IiwieDV0IjoiaUJqTDFSY3F6aGl5NGZweEl4ZFpxb2hNMllrIiwia2lkIjoiaUJqTDFSY3F6aGl5NGZweEl4ZFpxb2hNMllrIn0.eyJhdWQiOiJodHRwczovL2dyYXBoLm1pY3Jvc29mdC5jb20iLCJpc3MiOiJodHRwczovL3N0cy53aW5kb3dzLm5ldC8zMDQ4ZGM4Ny00M2YwLTQxMDAtOWFjYi1hZTE5NzFjNzkzOTUvIiwiaWF0IjoxNTI4MTAxNTc0LCJuYmYiOjE1MjgxMDE1NzQsImV4cCI6MTUyODEwNTQ3NCwiYWNyIjoiMSIsImFpbyI6IlkyZGdZSmhoOXZTMW1WMzJ0dmFuQi9uS0w3LzVyY2t0SEdkY0hMRkQ5WXF5OWVMN08zc0EiLCJhbXIiOlsicHdkIl0sImFwcF9kaXNwbGF5bmFtZSI6IlByb29mIG9mIENvbmNlcHQiLCJhcHBpZCI6IjA0NmE4YTVmLThhOTEtNGJlNi04MTIzLTgyMmQ4NDZlYWU0OCIsImFwcGlkYWNyIjoiMSIsImVfZXhwIjoyNjI4MDAsImZhbWlseV9uYW1lIjoiR2FyY2lhIFBlcmV6IiwiZ2l2ZW5fbmFtZSI6IkRhbmllbCIsImlwYWRkciI6IjIxNy4xMjUuMTQzLjE0MCIsIm5hbWUiOiJEYW5pZWwgR2FyY2lhIFBlcmV6Iiwib2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ZmEzZjEzOTMtMDJmNS00MmE3LThjODAtMTA0NTIzYTM3YjBkIiwib25wcmVtX3NpZCI6IlMtMS01LTIxLTI5MTU5OTcxMTYtNDEzMTYwMzAyOS0xNzg5MjA3NzkzLTM4NjUyMSIsInBsYXRmIjoiMyIsInB1aWQiOiIxMDAzM0ZGRjlGRDA4QjQwIiwic2NwIjoiQ2FsZW5kYXJzLlJlYWQuU2hhcmVkIENhbGVuZGFycy5SZWFkV3JpdGUuU2hhcmVkIEZpbGVzLlJlYWRXcml0ZSBNYWlsLlJlYWQgTWFpbC5TZW5kIFVzZXIuUmVhZCBVc2VyLlJlYWRCYXNpYy5BbGwiLCJzdWIiOiJma3dKVlBlZTJyRmlEblhzc2t5TEpPM1g0T1FNMWNlRDJTamtTMkJCZHRZIiwidGlkIjoiMzA0OGRjODctNDNmMC00MTAwLTlhY2ItYWUxOTcxYzc5Mzk1IiwidW5pcXVlX25hbWUiOiJkZ2FyY3BlckBldmVyaXMuY29tIiwidXBuIjoiZGdhcmNwZXJAZXZlcmlzLmNvbSIsInV0aSI6Ikd3aWlWRmVTNlVLQmFRZUZxR3dnQUEiLCJ2ZXIiOiIxLjAifQ.kcPb41pSt4tg6ie7bHViXWUVFgZT6SN3g9b76bKJSLsjJYmMc1u7kaa7w9jHbB2rKW35GpbEQZDMubX-tYIt-yTOlMBrmuHl1tHXZpwr-EL-nCbu5-b2jkUYDP9ealENk6EDv_5f_j176W147UgDirONxNPygDmPIQgpphS6pi3I4_Lr3CgUTlneqm4M5EIldaXs8MCf9n319veHL9j9ZyWVZFw-tN5CbCMXvSP5SlCE_lo_0w7oMWzZmmLWZ8j1D6isT8SCNKXG06GBfTu-BzX6kiNf-26HJmwQdCwP1QITSI3iRBXM4PqJBMRN1U-QpeypoXTKca441PiMOWCj1A",
                    FechaCreacion = new DateTime(2018, 04, 06),
                    FechaCreacionToken= new DateTime(2019,04,08),
                    FechaExpiracionToken=new DateTime(2020,05,19),
                    IsActivo=true
                };

                //    _cuentaTokenRepository.GetOne(x => x.CuentaTokenId == tokenId);
                response.cuentaToken = cuentaToken.ConvertToCuentaTokenViewModel();
                response.IsValid = true;
            }
            catch (Exception e)
            {
                response.IsValid = false;
                response.ErrorMessage = e.Message;
            }
            return response;
        }
        public GetTokenByIdResponse GetTokenById(int tokenId)
        {
            GetTokenByIdResponse response = new GetTokenByIdResponse();

            try
            {
                var cuentaToken = _cuentaTokenRepository.GetOne(x => x.CuentaTokenId == tokenId);
                response.cuentaToken = cuentaToken.ConvertToCuentaTokenViewModel();
                response.IsValid     = true;
            }
            catch (Exception e)
            {
                response.IsValid      = false;
                response.ErrorMessage = e.Message;
            }
            return(response);
        }