public PartialViewResult GetActionInfoData(int page = 1, string type = "", string searchContext = "")
        {
            int total;
            IEnumerable <ActionInfo> result = null;

            if (type != "" && searchContext != "")
            {
                result = Search(type, searchContext);
                result =
                    result.OrderBy(p => p.ActionName)
                    .Skip((page - 1) * PageSize)
                    .Take(PageSize);
                total = result.Count();
            }
            else
            {
                result = actionInfoService.GetPageEntites(PageSize, page, out total,
                                                          u => u.DelFlag == (short)DelFlagEnum.Normal, u => u.ActionName, true);
            }
            ActionInfoViewModel model = new ActionInfoViewModel
            {
                ActionInfos = result,
                PagingInfo  = new PagingInfo {
                    CurrentPage = page, ItemsPerPage = PageSize, TotalItems = total
                }
            };

            return(PartialView(model));
        }