public ActionResult BuyHeroes(string idPlayer)
        {
            var player = _playerAppService.GetById(ObjectId.Parse(idPlayer));
            var heroes = _heroAppService.ListAll().Where(t => !player.PlayerHeroes.Contains(t) && t.HeroActive == true).ToList();

            ViewBag.idPlayer = idPlayer;
            return(View(heroes));
        }
 // GET: Heroes
 public ActionResult Index()
 {
     return(View(_heroAppService.ListAll()));
 }
Beispiel #3
0
 // GET: api/Hero
 public IEnumerable <HeroViewModel> Get()
 {
     return(_heroAppService.ListAll());
 }