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); }
public EndUser Create(EndUser user) { _context.EndUsers.Add(user); return(user); }