public ActionResult DeleteConfirmed(string id)
        {
            HocPhiTheoDangKy hocPhiTheoDangKy = db.HocPhiTheoDangKies.Find(id);

            db.HocPhiTheoDangKies.Remove(hocPhiTheoDangKy);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,SoTienDong,SoTinChi,NienKhoa,GhiChu,MaGiaTC")] HocPhiTheoDangKy hocPhiTheoDangKy)
 {
     if (ModelState.IsValid)
     {
         db.Entry(hocPhiTheoDangKy).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     ViewBag.MaGiaTC = new SelectList(db.GiaTinChis, "MaGiaTC", "MaHDT", hocPhiTheoDangKy.MaGiaTC);
     return(View(hocPhiTheoDangKy));
 }
        public ActionResult Details(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HocPhiTheoDangKy hocPhiTheoDangKy = db.HocPhiTheoDangKies.Find(id);

            if (hocPhiTheoDangKy == null)
            {
                return(HttpNotFound());
            }
            return(View(hocPhiTheoDangKy));
        }
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            HocPhiTheoDangKy hocPhiTheoDangKy = db.HocPhiTheoDangKies.Find(id);

            if (hocPhiTheoDangKy == null)
            {
                return(HttpNotFound());
            }
            ViewBag.MaGiaTC = new SelectList(db.GiaTinChis, "MaGiaTC", "MaHDT", hocPhiTheoDangKy.MaGiaTC);
            return(View(hocPhiTheoDangKy));
        }