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