public ActionResult NhapThongTinChiTietPartialUpdate(TieuChuanWeb2.Models.hs_noidung item)
        {
            var model = db1.hs_noidung;

            if (ModelState.IsValid)
            {
                try
                {
                    var modelItem = model.FirstOrDefault(it => it.id == item.id);
                    if (modelItem != null)
                    {
                        this.UpdateModel(modelItem);
                        db1.SaveChanges();
                    }
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_NhapThongTinChiTietPartial", model.ToList()));
        }
        public ActionResult NhapThongTinChiTietPartialAddNew(TieuChuanWeb2.Models.hs_noidung item)
        {
            var model = db1.hs_noidung;

            if (ModelState.IsValid)
            {
                try
                {
                    model.Add(item);
                    db1.SaveChanges();
                }
                catch (Exception e)
                {
                    ViewData["EditError"] = e.Message;
                }
            }
            else
            {
                ViewData["EditError"] = "Please, correct all errors.";
            }
            return(PartialView("_NhapThongTinChiTietPartial", model.ToList()));
        }