Beispiel #1
0
        // GET: Heroes/Details/5
        //[Authorize(Roles = "admin")]
        //[Authorize(Roles = "manager")]
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            IList <SPP_HeroesTrans_Result> heroes = db.SPP_HeroesTrans().Where(h => h.idHero == id).ToList();

            return(View(heroes));
        }
Beispiel #2
0
 public IList <SPP_HeroesTrans_Result> GetAllHeroTrans()
 {
     return(db.SPP_HeroesTrans().ToList());
 }