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)); }