public PageResult <BookRetrieveModel> GetBooks(ODataQueryOptions <BookRetrieveModel> options) { IQueryable results = options.ApplyTo(_filterService.GetBooks(), new ODataQuerySettings { PageSize = 5 }); return(new PageResult <BookRetrieveModel>( results as IEnumerable <BookRetrieveModel>, Request.ODataFeature().NextLink, Request.ODataFeature().TotalCount)); }