コード例 #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));
        }