public ActionResult DeleteConfirmed(int id) { fee_Amount_December fee_Amount_December = db.fee_Amount_December.Find(id); db.fee_Amount_December.Remove(fee_Amount_December); 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_December fee_Amount_December) { if (ModelState.IsValid) { db.Entry(fee_Amount_December).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.stu_fee_id = new SelectList(db.tbl_enrolment, "Stu_id", "Stu_f_name", fee_Amount_December.stu_fee_id); return(View(fee_Amount_December)); }
// GET: fee_Amount_December/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } fee_Amount_December fee_Amount_December = db.fee_Amount_December.Find(id); if (fee_Amount_December == null) { return(HttpNotFound()); } return(View(fee_Amount_December)); }
// GET: fee_Amount_December/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } fee_Amount_December fee_Amount_December = db.fee_Amount_December.Find(id); if (fee_Amount_December == null) { return(HttpNotFound()); } ViewBag.stu_fee_id = new SelectList(db.tbl_enrolment, "Stu_id", "Stu_f_name", fee_Amount_December.stu_fee_id); return(View(fee_Amount_December)); }