public IQueryable <TModel> SkipAndTake(IQueryable <TModel> queryable) { if (Page > 0 && Keyword == "") { queryable = queryable.Skip((Page - 1) * PerPageCount).Take(PerPageCount); } else if (Page > 0 && Keyword.Any()) { queryable = queryable.Skip((Page - 1) * PerPageCount).Take(PerPageCount); } else { Page = 1; queryable = queryable.Skip((Page - 1) * PerPageCount).Take(PerPageCount); } return(queryable); }