public ActionResult DeleteConfirmed(int id)
        {
            Publisher_Requests publisher_Requests = db.Publisher_Requests.Find(id);

            db.Publisher_Requests.Remove(publisher_Requests);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        public ActionResult Create([Bind(Include = "Id,Title,Request_Text,PublisherId")] Publisher_Requests publisher_Requests)
        {
            if (ModelState.IsValid)
            {
                db.Publisher_Requests.Add(publisher_Requests);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            ViewBag.PublisherId = new SelectList(db.Users, "Id", "Name", publisher_Requests.PublisherId);
            return(View(publisher_Requests));
        }
 // GET: Publisher_Requests/Delete/5
 public ActionResult Delete(int?id)
 {
     if (UserAuthentication.UserCheck(1))
     {
         if (id == null)
         {
             return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
         }
         Publisher_Requests publisher_Requests = db.Publisher_Requests.Find(id);
         if (publisher_Requests == null)
         {
             return(HttpNotFound());
         }
         return(View(publisher_Requests));
     }
     else
     {
         return(RedirectToAction("Home", "Home"));
     }
 }