예제 #1
0
        public ActionResult DeleteConfirmed(int id)
        {
            fee_Amount_June fee_Amount_June = db.fee_Amount_June.Find(id);

            db.fee_Amount_June.Remove(fee_Amount_June);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
예제 #2
0
 public ActionResult Edit([Bind(Include = "fee_id,fee_Advance,Fee_Amount,fee_month_name,fee_status,fee_date,stu_fee_id")] fee_Amount_June fee_Amount_June)
 {
     if (ModelState.IsValid)
     {
         db.Entry(fee_Amount_June).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.stu_fee_id = new SelectList(db.tbl_enrolment, "Stu_id", "Stu_f_name", fee_Amount_June.stu_fee_id);
     return(View(fee_Amount_June));
 }
예제 #3
0
        // GET: fee_Amount_June/Details/5
        public ActionResult Details(int?id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            fee_Amount_June fee_Amount_June = db.fee_Amount_June.Find(id);

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

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