Beispiel #1
0
        public async Task <object> Register(RegisterUser user)
        {
            var au = new ApplicationUser {
                UserName = user.UserName
            };
            var result = await userManager.CreateAsync(au, user.Password);

            if (result.Succeeded)
            {
                var u = user.MapToDto();
                gameUserService.Register(u);
            }

            return(Task.FromResult(result.Errors));
        }