private void populateIdentityUser(IdentityUser identityUser, Entities.User user) { identityUser.Id = user.UserId; identityUser.UserName = user.UserName; identityUser.PasswordHash = user.PasswordHash; identityUser.SecurityStamp = user.SecurityStamp; }
private void populateUser(Entities.User user, IdentityUser identityUser) { user.UserId = identityUser.Id; user.UserName = identityUser.UserName; user.PasswordHash = identityUser.PasswordHash; user.SecurityStamp = identityUser.SecurityStamp; }
private IdentityUser getIdentityUser(Entities.User user) { if (user == null) { return(null); } var identityUser = new IdentityUser(); populateIdentityUser(identityUser, user); return(identityUser); }
private Entities.User getUser(IdentityUser identityUser) { if (identityUser == null) { return(null); } var user = new Entities.User(); populateUser(user, identityUser); return(user); }