public ActionResult Create(DanhMuc danhmuc)
        {
            if (ModelState.IsValid)
            {
                db.DanhMucs.Add(danhmuc);
                db.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(danhmuc);
        }
 public ActionResult Edit(DanhMuc danhmuc)
 {
     if (ModelState.IsValid)
     {
         db.Entry(danhmuc).State = EntityState.Modified;
         db.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(danhmuc);
 }