Esempio n. 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            tbl_notification_receiver tbl_notification_receiver = db.tbl_notification_receiver.Find(id);

            db.tbl_notification_receiver.Remove(tbl_notification_receiver);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Esempio n. 2
0
 public ActionResult Edit([Bind(Include = "id,receiver,status,notification_id")] tbl_notification_receiver tbl_notification_receiver)
 {
     if (ModelState.IsValid)
     {
         db.Entry(tbl_notification_receiver).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.notification_id = new SelectList(db.tbl_notification, "notification_id", "sender", tbl_notification_receiver.notification_id);
     return(View(tbl_notification_receiver));
 }
Esempio n. 3
0
        // GET: /Notification_Reciver/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbl_notification_receiver tbl_notification_receiver = db.tbl_notification_receiver.Find(id);

            if (tbl_notification_receiver == null)
            {
                return(HttpNotFound());
            }
            return(View(tbl_notification_receiver));
        }
Esempio n. 4
0
        // GET: /Notification_Reciver/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            tbl_notification_receiver tbl_notification_receiver = db.tbl_notification_receiver.Find(id);

            if (tbl_notification_receiver == null)
            {
                return(HttpNotFound());
            }
            ViewBag.notification_id = new SelectList(db.tbl_notification, "notification_id", "sender", tbl_notification_receiver.notification_id);
            return(View(tbl_notification_receiver));
        }