示例#1
0
		public async Task<SignUpAccountResponseView> SignUp(string userName)
		{
			Player user = new Player
			{
				UserName = userName,
				Points = 100,
				Role = PlayersType.User.ToString()
			};
			await _userManager.CreateAsync(user);
			var response = _mappingService.AccountMapper(user, new SignUpAccountResponseView());
			return response;
		}