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