Exemple #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            atten_sep atten_sep = db.atten_sep.Find(id);

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

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

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