// 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)); }
public IList <SPP_HeroesTrans_Result> GetAllHeroTrans() { return(db.SPP_HeroesTrans().ToList()); }