public ActionResult Index(CategoryManageIndexModel model)
 {
     return RedirectToAction("Index", new
     {
         name = model.FilterName
     });
 }
        // GET: CategroyManage
        public ActionResult Index(String name, Int32 pageIndex = 0)
        {
            if (!string.IsNullOrEmpty(name))
            {
                name = name.Trim();
            }

            CategoryManageIndexModel model = new CategoryManageIndexModel();
            model.FilterName = name;

            CategoryInfoCondition condition = new CategoryInfoCondition();
            condition.CategoryName = name;

            IEnumerable<CategoryInfo> categorys = this.ICategoryInfoDataProvider.GetCategoryList(condition);

            PagingContent<CategoryInfo> paging = new PagingContent<CategoryInfo>(categorys, pageIndex);

            foreach (var item in paging.EntityList)
            {
                model.CategoryModelList.Add(CategoryModel.GetViewModel(item));
            }

            model.PagingContent = paging;

            return View(model);
        }