Exemplo n.º 1
0
        public IActionResult GetOpponentByID(int id)
        {
            a  = randomOpponent.Next(1, 7);
            id = a;
            OpponentDetailViewModel vm = bvmc.ViewModelFromOpponent(opponentRepo.GetOpponentByID(id));

            return(View(vm));
        }
        public OpponentDetailViewModel ViewModelFromOpponent(Opponent opponent)
        {
            OpponentDetailViewModel vm = new OpponentDetailViewModel()
            {
                Name         = opponent.Name,
                trainerClass = opponent.trainerClass,
            };

            return(vm);
        }