public async Task <ActionResult> DeleteConfirmed3(string id)
        {
            THELOAITINTUC tHELOAITINTUC = await db.THELOAITINTUCs.FindAsync(id);

            db.THELOAITINTUCs.Remove(tHELOAITINTUC);
            await db.SaveChangesAsync();

            return(RedirectToAction("THELOAITINTUCVIEW"));
        }
        public async Task <ActionResult> THELOAITINTUCEDIT([Bind(Include = "IDTHELOAI,TENTHELOAI")] THELOAITINTUC tHELOAITINTUC)
        {
            if (ModelState.IsValid)
            {
                db.Entry(tHELOAITINTUC).State = EntityState.Modified;
                await db.SaveChangesAsync();

                return(RedirectToAction("THELOAITINTUCVIEW"));
            }
            return(View(tHELOAITINTUC));
        }
        public async Task <ActionResult> THELOAITINTUCADD([Bind(Include = "IDTHELOAI,TENTHELOAI")] THELOAITINTUC tHELOAITINTUC)
        {
            tHELOAITINTUC.IDTHELOAI = getGUID().ToString();
            if (ModelState.IsValid)
            {
                db.THELOAITINTUCs.Add(tHELOAITINTUC);
                await db.SaveChangesAsync();

                return(RedirectToAction("THELOAITINTUCVIEW"));
            }
            ViewBag.IDTHELOAI = new SelectList(db.THELOAITINTUCs, "IDTHELOAI", "TENTHELOAI", tHELOAITINTUC.IDTHELOAI);
            return(View(tHELOAITINTUC));
        }
        // GET: THELOAITINTUCs/Delete/5
        public async Task <ActionResult> THELOAITINTUCDEL(string id)
        {
            if (id == null)
            {
                return(new HttpStatusCodeResult(HttpStatusCode.BadRequest));
            }
            THELOAITINTUC tHELOAITINTUC = await db.THELOAITINTUCs.FindAsync(id);

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