Ejemplo n.º 1
0
        private PersonEN createPersonToken(TokenEN pToken)
        {
            PersonEN person = new PersonEN();

            try
            {
                person.PersonID         = pToken.PersonID;
                person.Email            = pToken.PersonEmail;
                person.Password         = pToken.Password;
                person.TokenExpiration  = pToken.ExpirationDate;
                person.VendorCode       = pToken.VendorCode;
                person.ProfileCompleted = pToken.ProfileCompleted;
                person.DeviceIp         = pToken.DeviceIP = pToken.DeviceIP;
                person.DeviceID         = pToken.DeviceID;
                person.MasterID         = pToken.MasterID;
                person.CountryID        = pToken.CountryID;
                person.Active           = pToken.State;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.InnerException);
            }
            return(person);
        }
Ejemplo n.º 2
0
        private TokenEN createToken(PersonEN pPerson)
        {
            TokenEN token = new TokenEN();

            try
            {
                token.PersonID         = pPerson.PersonID;
                token.PersonEmail      = pPerson.Email;
                token.Password         = pPerson.Password;
                token.ExpirationDate   = pPerson.TokenExpiration;
                token.VendorCode       = pPerson.VendorCode;
                token.ProfileCompleted = pPerson.ProfileCompleted;
                token.DeviceIP         = pPerson.DeviceIp;
                token.DeviceID         = pPerson.DeviceID;
                token.MasterID         = pPerson.MasterID;
                token.CountryID        = pPerson.CountryID;
                token.State            = pPerson.Active;
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.InnerException);
            }
            return(token);
        }