I've created a custom UserStore class in an ASP.NET MVC 5 web site to allow custom reading/writing to SQL Server, and I have a couple of questions...
When 'var result = await UserManager.CreateAsync(user, model.Password);' is called from the controller 'public Task FindByNameAsync(string userName)' in UserStore is called first and then 'public Task CreateAsync(TUser user)' is called. What stops a second account of the same username from being created at the same time?
How can I raise errors in 'public Task CreateAsync(TUser user)' that results in 'result.Succeeded == false' and 'result errors' in the controller.