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));
        }
Ejemplo n.º 2
0
 // GET: Heroes
 public ActionResult Index()
 {
     return(View(_heroAppService.ListAll()));
 }
Ejemplo n.º 3
0
 // GET: api/Hero
 public IEnumerable <HeroViewModel> Get()
 {
     return(_heroAppService.ListAll());
 }