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