示例#1
0
 public async Task Create(PlayerCreateModel model)
 {
     model.AuthenticationCode = AuthService.HashPassword(model.AuthenticationCode);
     var obj = _mapper.Map <Player>(model);
     await _repository.CreateAndSaveAsync(obj);
 }