public ActionResult DeleteConfirmed(int id) { TutionFeeType tutionFeeType = db.TutionFeeType.Find(id); db.TutionFeeType.Remove(tutionFeeType); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,TutionFeeType1")] TutionFeeType tutionFeeType) { if (ModelState.IsValid) { db.Entry(tutionFeeType).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tutionFeeType)); }
public ActionResult Create([Bind(Include = "Id,TutionFeeType1")] TutionFeeType tutionFeeType) { if (ModelState.IsValid) { db.TutionFeeType.Add(tutionFeeType); db.SaveChanges(); return(RedirectToAction("Index")); } return(View(tutionFeeType)); }
// GET: TutionFeeTypes/Delete/5 public ActionResult Delete(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } TutionFeeType tutionFeeType = db.TutionFeeType.Find(id); if (tutionFeeType == null) { return(HttpNotFound()); } return(View(tutionFeeType)); }