Exemple #1
0
        // 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));
        }
Exemple #2
0
 public IList <SPP_MessageTrans_Result> GetAllMessageTrans()
 {
     return(db.SPP_MessageTrans().ToList());
 }