var log = string.IsNullOrEmpty(filter?.search)
? _appLog.Get().OrderByDescending(x => x.Date)
: _appLog.Get().Where(p => p.ProcessName == filter.Search).OrderByDescending(x => x.Date);
log = Pagination(log.AsQueryable(), filter, "Date", "LogList");
The error is at the Pagination, when log.AsQueryable() try to convert from IOrderedQueryable to IQueryable
Cannot Implicitly convert type IQueryable to IOrderedQueryable
Someone know how i can do this with an alternative way ?