示例#1
0
        public AppUser CreateAppUser(EndUser endUser, string password)
        {
            AppUser user = new AppUser {
                EndUserId = endUser.Id, UserName = endUser.Email, EmailConfirmed = true
            };

            _userManager.CreateAsync(user, password);
            return(user);
        }
示例#2
0
 public EndUser Create(EndUser user)
 {
     _context.EndUsers.Add(user);
     return(user);
 }