public ActionResult DeleteConfirmed(int id) { StudentExperienceType studentexperiencetype = db.StudentExperienceTypes.Find(id); db.StudentExperienceTypes.Remove(studentexperiencetype); db.SaveChanges(); return(RedirectToAction("Index")); }
// // GET: /StudentExperienceType/Delete/5 public ActionResult Delete(int id = 0) { StudentExperienceType studentexperiencetype = db.StudentExperienceTypes.Find(id); if (studentexperiencetype == null) { return(HttpNotFound()); } return(View(studentexperiencetype)); }
public ActionResult Edit(StudentExperienceType studentexperiencetype) { if (ModelState.IsValid) { db.Entry(studentexperiencetype).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(studentexperiencetype)); }
public ActionResult Create(StudentExperienceType studentexperiencetype) { if (ModelState.IsValid) { db.StudentExperienceTypes.Add(studentexperiencetype); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(studentexperiencetype)); }