Пример #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);
        }