public ActionResult Create(StudentParticularType studentparticulartype) { if (ModelState.IsValid) { db.StudentParticularTypes.Add(studentparticulartype); db.SaveChanges(); return RedirectToAction("Index"); } return View(studentparticulartype); }
public ActionResult Edit(StudentParticularType studentparticulartype) { if (ModelState.IsValid) { db.Entry(studentparticulartype).State = EntityState.Modified; db.SaveChanges(); return RedirectToAction("Index"); } return View(studentparticulartype); }