Esempio n. 1
0
 private void populateIdentityUser(IdentityUser identityUser, Entities.User user)
 {
     Mapper.Map <Entities.User, IdentityUser>(user, identityUser);
     //identityUser.Id = user.UserId;
     //identityUser.UserName = user.UserName;
     //identityUser.PasswordHash = user.PasswordHash;
     //identityUser.SecurityStamp = user.SecurityStamp;
     //identityUser.Email = user.Email;
     //identityUser.EmailConfirmed = user.EmailConfirmed;
     //identityUser.LockoutEnabled = user.LockoutEnabled;
     //identityUser.LockoutEndDateUtc = user.LockoutEndDateUtc;
     //identityUser.AccessFailedCount = user.AccessFailedCount;
 }
Esempio n. 2
0
        private IdentityUser getIdentityUser(Entities.User user)
        {
            if (user == null)
            {
                return(null);
            }

            var identityUser = new IdentityUser();

            populateIdentityUser(identityUser, user);

            return(identityUser);
        }
Esempio n. 3
0
        private Entities.User getUser(IdentityUser identityUser)
        {
            if (identityUser == null)
            {
                return(null);
            }

            var user = new Entities.User();

            populateUser(user, identityUser);

            return(user);
        }
Esempio n. 4
0
 private void populateUser(Entities.User user, IdentityUser identityUser)
 {
     Mapper.Map <IdentityUser, Entities.User>(identityUser, user);
     //user.UserId = identityUser.Id;
     //user.UserName = identityUser.UserName;
     //user.PasswordHash = identityUser.PasswordHash;
     //user.SecurityStamp = identityUser.SecurityStamp;
     //user.Email = identityUser.Email;
     //user.EmailConfirmed = identityUser.EmailConfirmed;
     //user.LockoutEnabled = identityUser.LockoutEnabled;
     //user.LockoutEndDateUtc = identityUser.LockoutEndDateUtc;
     //user.AccessFailedCount = identityUser.AccessFailedCount;
     //user.AllergicTo = identityUser.AllergicTo;
     //user.
 }