public JsonResult ListCats2(string parentFullName)
        {
            CategoryRepository categoryRepository = new CategoryRepository();

            Category e = categoryRepository.GetByFullname(parentFullName);

            return Json(e.Children.Select(r => new { r.ID, r.FullName }).OrderBy(r => r.FullName));
        }
 public void UpdateCategory(Product e)
 {
     CategoryRepository catRepository = new CategoryRepository();
     catRepository.Set3LevelByFullname(e.NewCategoryFullName, e.UpdateCategory);
 }
        public void UpdateCategory(Product e)
        {
            CategoryRepository catRepository = new CategoryRepository();

            catRepository.Set3LevelByFullname(e.NewCategoryFullName, e.UpdateCategory);
        }