public ActionResult DeleteConfirmed(int id) { fee_Amount_September fee_Amount_September = db.fee_Amount_September.Find(id); db.fee_Amount_September.Remove(fee_Amount_September); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "fee_id,fee_Advance,Fee_Amount,fee_month_name,fee_status,fee_date,stu_fee_id")] fee_Amount_September fee_Amount_September) { if (ModelState.IsValid) { db.Entry(fee_Amount_September).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.stu_fee_id = new SelectList(db.tbl_enrolment, "Stu_id", "Stu_f_name", fee_Amount_September.stu_fee_id); return(View(fee_Amount_September)); }
// GET: fee_Amount_September/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } fee_Amount_September fee_Amount_September = db.fee_Amount_September.Find(id); if (fee_Amount_September == null) { return(HttpNotFound()); } return(View(fee_Amount_September)); }
// GET: fee_Amount_September/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } fee_Amount_September fee_Amount_September = db.fee_Amount_September.Find(id); if (fee_Amount_September == null) { return(HttpNotFound()); } ViewBag.stu_fee_id = new SelectList(db.tbl_enrolment, "Stu_id", "Stu_f_name", fee_Amount_September.stu_fee_id); return(View(fee_Amount_September)); }