public ActionResult DeleteConfirmed(int id)
        {
            atten_July atten_July = db.atten_July.Find(id);

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

            if (atten_July == null)
            {
                return(HttpNotFound());
            }
            return(View(atten_July));
        }
        // GET: atten_July/Edit/5
        public ActionResult Edit(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            atten_July atten_July = db.atten_July.Find(id);

            if (atten_July == null)
            {
                return(HttpNotFound());
            }
            ViewBag.stu_fee_id = new SelectList(db.tbl_enrolment, "Stu_id", "Stu_f_name", atten_July.stu_fee_id);
            return(View(atten_July));
        }