Imagine you are developing an e-commerce website using ASP.NET Core. After a user completes their first purchase, you want to programmatically create an account for them using the email they provided. Which class and method in ASP.NET Core Identity would be most suitable for this?

  • UserManager.CreateAsync()
  • SignInManager.PasswordSignInAsync()
  • RoleManager.CreateAsync()
  • UserStore.CreateAsync()
You would use UserManager.CreateAsync() to programmatically create a user account in ASP.NET Core Identity. This method allows you to create a new user with the provided email and other necessary information.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *