public ActionResult Add(ArticleCategory category)
 {
     if (ModelState.IsValid) 
     {
         repository = new ArticleCategoryRepository();
         repository.Add(category);
         ViewBag.SectionId = 2;
         return RedirectToAction("Index");
     }
     ViewBag.SectionId = 3;
     
     return View("Index", category);
 }
 public ActionResult Edit(ArticleCategory category)
 {
     //TryValidateModel(category);
     if (ModelState.IsValid)
     {
         repository = new ArticleCategoryRepository();
         //var _ = repository.Find(category.Id);
         //_.Id = category.Id;
         //_.ParentId = category.ParentId;
         //_.LinkName = category.LinkName;
         //_.LinkUrl = category.LinkUrl;
         //_.SortOrder = category.SortOrder;
         //_.Status = category.Status;
         //repository.Update(_);
         repository.Update(category);
         ViewBag.SectionId = 2;
         return RedirectToAction("Index");
     }
     ViewBag.SectionId = 4;
     return View("Index", category);
 }