public ActionResult DeleteConfirmed(int id)
        {
            SubjectPrograms subjectPrograms = db.SubjectPrograms.Find(id);

            db.SubjectPrograms.Remove(subjectPrograms);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "Id,Name,ClickPath,IconPath")] SubjectPrograms subjectPrograms)
 {
     if (ModelState.IsValid)
     {
         db.Entry(subjectPrograms).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(subjectPrograms));
 }
        public ActionResult Create([Bind(Include = "Id,Name,ClickPath,IconPath")] SubjectPrograms subjectPrograms)
        {
            if (ModelState.IsValid)
            {
                db.SubjectPrograms.Add(subjectPrograms);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

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

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