public ActionResult DeleteConfirmed(int id)
        {
            WorkerInfluentialPersons workerinfluentialpersons = db.WorkerInfluentialPersons.Find(id);

            db.WorkerInfluentialPersons.Remove(workerinfluentialpersons);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
        //
        // GET: /WorkerInfluentialPersonsAdmin/Details/5

        public ActionResult Details(int id = 0)
        {
            WorkerInfluentialPersons workerinfluentialpersons = db.WorkerInfluentialPersons.Find(id);

            if (workerinfluentialpersons == null)
            {
                return(HttpNotFound());
            }
            return(View(workerinfluentialpersons));
        }
 public ActionResult Edit(WorkerInfluentialPersons workerinfluentialpersons)
 {
     if (ModelState.IsValid)
     {
         db.Entry(workerinfluentialpersons).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(workerinfluentialpersons));
 }
        public ActionResult Create(WorkerInfluentialPersons workerinfluentialpersons)
        {
            if (ModelState.IsValid)
            {
                db.WorkerInfluentialPersons.Add(workerinfluentialpersons);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(workerinfluentialpersons));
        }