public async Task Cleanup() { UserProfile playerProfile = await _catanPlayerBusinessLogic.GetUser(PlayerEmail1, Password); if (playerProfile == null) { return; } IEnumerable <CatanGame> playerGames = await _catanGameBusinessLogic.GetUserActiveGames(playerProfile.UserName); foreach (CatanGame playerGame in playerGames) { await _catanGameBusinessLogic.RemoveGame(playerGame); } await _catanPlayerBusinessLogic.UnRegisterUser(playerProfile.Id); }
public async Task UnRegisterUser([FromBody] Guid userId) { _logger?.LogDebug($"UnRegisterUser for user: {userId}"); await _catanUserBusinessLogic.UnRegisterUser(userId); }