// GET: Messages/Details/5 //[Authorize(Roles = "admin")] //[Authorize(Roles = "manager")] public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } IList <SPP_MessageTrans_Result> messages = db.SPP_MessageTrans().Where(m => m.idMessage == id).ToList(); return(View(messages)); }
public IList <SPP_MessageTrans_Result> GetAllMessageTrans() { return(db.SPP_MessageTrans().ToList()); }