public async Task <int> CompareResultsAsync(GameDto game, PredictionDto prediction) { var gameEntity = game.ToEntity(); var predictionEntity = prediction.ToEntity(); var test = await _predictionRepository.CompareResultsAsync(gameEntity, predictionEntity); return(test); }
public void Update(GameDto game) { _repository.Update(game.ToEntity()); _repository.SaveChanges(); }
public async Task <bool> CanInsertGameAsync(GameDto game) { var gameEntity = game.ToEntity(); return(await _gameRepository.CanInsertGameAsync(gameEntity)); }
public async Task <int> UpdateGameAsync(GameDto game) { var gameEntity = game.ToEntity(); return(await _gameRepository.UpdateGameAsync(gameEntity)); }