Exemple #1
0
        public async Task <BM.IdentityResult> CreateAsync(BM.RegisterUser model)
        {
            DM.User user = model.MapTo <BM.RegisterUser, DM.User>();

            IdentityResult identityResult = await _userManager.CreateAsync(user, model.Password);

            return(identityResult.MapTo <IdentityResult, BM.IdentityResult>());
        }