public ActionResult Delete(string id)
        {
            TTPHIEUXUAT group_role = db.TTPHIEUXUATs.Find(id);

            db.TTPHIEUXUATs.Remove(group_role);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
 public ActionResult Edit([Bind(Include = "ID,IDHH,IDTTPHIEUNHAP,IDKH,COUNT")] TTPHIEUXUAT group_role)
 {
     if (ModelState.IsValid)
     {
         db.Entry(group_role).State = EntityState.Modified;
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(group_role));
 }
        public ActionResult Create([Bind(Include = "ID,IDHH,IDTTPHIEUNHAP,IDKH,COUNT")] TTPHIEUXUAT group_role)
        {
            if (ModelState.IsValid)
            {
                db.TTPHIEUXUATs.Add(group_role);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(group_role));
        }
        // GET: TTNhom_QLNS/group_role/Edit/5
        public ActionResult Edit(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            TTPHIEUXUAT group_role = db.TTPHIEUXUATs.Find(id);

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