public ActionResult Create(StudentExperienceType studentexperiencetype) { if (ModelState.IsValid) { db.StudentExperienceTypes.Add(studentexperiencetype); db.SaveChanges(); return RedirectToAction("Index"); } 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); }