示例#1
0
 private void populateIdentityUser(IdentityUser identityUser, Entities.User user)
 {
     identityUser.Id            = user.UserId;
     identityUser.UserName      = user.UserName;
     identityUser.PasswordHash  = user.PasswordHash;
     identityUser.SecurityStamp = user.SecurityStamp;
 }
示例#2
0
 private void populateUser(Entities.User user, IdentityUser identityUser)
 {
     user.UserId        = identityUser.Id;
     user.UserName      = identityUser.UserName;
     user.PasswordHash  = identityUser.PasswordHash;
     user.SecurityStamp = identityUser.SecurityStamp;
 }
示例#3
0
        private IdentityUser getIdentityUser(Entities.User user)
        {
            if (user == null)
            {
                return(null);
            }

            var identityUser = new IdentityUser();

            populateIdentityUser(identityUser, user);

            return(identityUser);
        }
示例#4
0
        private Entities.User getUser(IdentityUser identityUser)
        {
            if (identityUser == null)
            {
                return(null);
            }

            var user = new Entities.User();

            populateUser(user, identityUser);

            return(user);
        }