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

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

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

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