public ActionResult DeleteConfirmed(int id)
        {
            InsiderProfileModule insiderProfileModule = db.InsiderProfileModules.Find(id);

            db.InsiderProfileModules.Remove(insiderProfileModule);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "InsiderProfileModuleID,InsiderProfileID,InsiderPhotoID,InsiderHeaderPhotoID,InsiderSkillID")] InsiderProfileModule insiderProfileModule)
 {
     if (ModelState.IsValid)
     {
         db.Entry(insiderProfileModule).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.InsiderHeaderPhotoID = new SelectList(db.InsiderHeaderPhotoes, "InsiderHeaderPhotoID", "HeaderFileName", insiderProfileModule.InsiderHeaderPhotoID);
     ViewBag.InsiderPhotoID       = new SelectList(db.InsiderPhotoes, "InsiderPhotoID", "PhotoFileName", insiderProfileModule.InsiderPhotoID);
     ViewBag.InsiderProfileID     = new SelectList(db.InsiderProfiles, "InsiderProfileID", "InsiderProfileID", insiderProfileModule.InsiderProfileID);
     ViewBag.InsiderSkillID       = new SelectList(db.InsiderSkills, "InsiderSkillID", "InsiderSkillID", insiderProfileModule.InsiderSkillID);
     return(View(insiderProfileModule));
 }
        // GET: InsiderProfileModules/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            InsiderProfileModule insiderProfileModule = db.InsiderProfileModules.Find(id);

            if (insiderProfileModule == null)
            {
                return(HttpNotFound());
            }
            return(View(insiderProfileModule));
        }
        // GET: InsiderProfileModules/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            InsiderProfileModule insiderProfileModule = db.InsiderProfileModules.Find(id);

            if (insiderProfileModule == null)
            {
                return(HttpNotFound());
            }
            ViewBag.InsiderHeaderPhotoID = new SelectList(db.InsiderHeaderPhotoes, "InsiderHeaderPhotoID", "HeaderFileName", insiderProfileModule.InsiderHeaderPhotoID);
            ViewBag.InsiderPhotoID       = new SelectList(db.InsiderPhotoes, "InsiderPhotoID", "PhotoFileName", insiderProfileModule.InsiderPhotoID);
            ViewBag.InsiderProfileID     = new SelectList(db.InsiderProfiles, "InsiderProfileID", "InsiderProfileID", insiderProfileModule.InsiderProfileID);
            ViewBag.InsiderSkillID       = new SelectList(db.InsiderSkills, "InsiderSkillID", "InsiderSkillID", insiderProfileModule.InsiderSkillID);
            return(View(insiderProfileModule));
        }