public IHttpActionResult Get(int CurrentPage = 1) { PageInfo pageInfo = new PageInfo() { PageIndex = CurrentPage, PageSize = 10, OrderField = "CreateDate", Order = OrderEnum.desc }; Expression <Func <HR_DICTIONARY, bool> > predicate = p => p.ISDELETED == false && p.FATHERID.Equals("0"); IEnumerable <HrDictionary> list = bll.GetList(pageInfo, predicate); Response <IEnumerable <HrDictionary> > response = new Response <IEnumerable <HrDictionary> > { Data = list, PagesCount = pageInfo.PagesCount }; return(Ok(response)); }