public ActionResult DeleteConfirmed(int id) { AspNetStudent_PaymentDetail aspNetStudent_PaymentDetail = db.AspNetStudent_PaymentDetail.Find(id); db.AspNetStudent_PaymentDetail.Remove(aspNetStudent_PaymentDetail); db.SaveChanges(); return(RedirectToAction("Index")); }
public ActionResult Edit([Bind(Include = "Id,Student_PaymentID,FeeType,Amount")] AspNetStudent_PaymentDetail aspNetStudent_PaymentDetail) { if (ModelState.IsValid) { db.Entry(aspNetStudent_PaymentDetail).State = EntityState.Modified; db.SaveChanges(); return(RedirectToAction("Index")); } ViewBag.Student_PaymentID = new SelectList(db.AspNetStudent_Payment, "Id", "StudentID", aspNetStudent_PaymentDetail.Student_PaymentID); return(View(aspNetStudent_PaymentDetail)); }
// GET: AspNetStudent_PaymentDetail/Details/5 public ActionResult Details(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AspNetStudent_PaymentDetail aspNetStudent_PaymentDetail = db.AspNetStudent_PaymentDetail.Find(id); if (aspNetStudent_PaymentDetail == null) { return(HttpNotFound()); } return(View(aspNetStudent_PaymentDetail)); }
// GET: AspNetStudent_PaymentDetail/Edit/5 public ActionResult Edit(int?id) { if (id == null) { return(new HttpStatusCodeResult(HttpStatusCode.BadRequest)); } AspNetStudent_PaymentDetail aspNetStudent_PaymentDetail = db.AspNetStudent_PaymentDetail.Find(id); if (aspNetStudent_PaymentDetail == null) { return(HttpNotFound()); } ViewBag.Student_PaymentID = new SelectList(db.AspNetStudent_Payment, "Id", "StudentID", aspNetStudent_PaymentDetail.Student_PaymentID); return(View(aspNetStudent_PaymentDetail)); }