public ActionResult DeleteConfirmed(int id)
        {
            ProgramStructure programStructure = db.ProgramStructures.Find(id);

            db.ProgramStructures.Remove(programStructure);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ProgramStructureID,DateCreated,DateModified,UserID")] ProgramStructure programStructure)
 {
     if (ModelState.IsValid)
     {
         db.Entry(programStructure).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(programStructure));
 }
        public ActionResult Create([Bind(Include = "ProgramStructureID,DateCreated,DateModified,UserID")] ProgramStructure programStructure)
        {
            if (ModelState.IsValid)
            {
                db.ProgramStructures.Add(programStructure);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(programStructure));
        }
        // GET: ProgramStructures/Delete/5
        public ActionResult Delete(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            ProgramStructure programStructure = db.ProgramStructures.Find(id);

            if (programStructure == null)
            {
                return(HttpNotFound());
            }
            return(View(programStructure));
        }