public ActionResult DeleteConfirmed(string id)
        {
            KhoahocIelts khoahocIelts = db.KhoahocIelts.Find(id);

            db.KhoahocIelts.Remove(khoahocIelts);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,Picture,TenKH,GiaoVien,Thoigian,Noidung,Giaotrinh,hoatdong,hocphi")] KhoahocIelts khoahocIelts)
 {
     if (ModelState.IsValid)
     {
         db.Entry(khoahocIelts).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(khoahocIelts));
 }
        public ActionResult Create([Bind(Include = "ID,Picture,TenKH,GiaoVien,Thoigian,Noidung,Giaotrinh,hoatdong,hocphi")] KhoahocIelts khoahocIelts)
        {
            if (ModelState.IsValid)
            {
                db.KhoahocIelts.Add(khoahocIelts);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(khoahocIelts));
        }
        // GET: KhoahocIelts/Delete/5
        public ActionResult Delete(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            KhoahocIelts khoahocIelts = db.KhoahocIelts.Find(id);

            if (khoahocIelts == null)
            {
                return(HttpNotFound());
            }
            return(View(khoahocIelts));
        }