public ActionResult Edit(ClCategory clcategory)
 {
     if (ModelState.IsValid)
     {
         context.Entry(clcategory).State = EntityState.Modified;
         context.SaveChanges();
         return RedirectToAction("Index");
     }
     return View(clcategory);
 }
        public ActionResult Create(ClCategory clcategory)
        {
            if (ModelState.IsValid)
            {
                context.ClCategories.Add(clcategory);
                context.SaveChanges();
                return RedirectToAction("Index");
            }

            return View(clcategory);
        }