public IEnumerable<CategoryInfo> GetCategoryList(CategoryInfoCondition categoryCondition)
        {
            var categoryList = from category in this.DataSource.CategoryInfos
                               select category;

            if (!String.IsNullOrEmpty(categoryCondition.CategoryName))
            {
                categoryList = categoryList.Where(u => u.CategoryName.Contains(categoryCondition.CategoryName));
            }

            return categoryList.ToList();
        }
        // 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);
        }