示例#1
0
        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);
        }
示例#2
0
 public void Update(GameDto game)
 {
     _repository.Update(game.ToEntity());
     _repository.SaveChanges();
 }
示例#3
0
        public async Task <bool> CanInsertGameAsync(GameDto game)
        {
            var gameEntity = game.ToEntity();

            return(await _gameRepository.CanInsertGameAsync(gameEntity));
        }
示例#4
0
        public async Task <int> UpdateGameAsync(GameDto game)
        {
            var gameEntity = game.ToEntity();

            return(await _gameRepository.UpdateGameAsync(gameEntity));
        }