My method signature is,
public async Task<List<TResource>> GetAllAsync(Expression<Func<TResource, bool>> filter = null,
Func<IQueryable<TResource>, IOrderedQueryable<TResource>> orderBy = null)
I need to pass Orderby column and ascending/decsending information to the webapi. How can I extract the column name and asc/desc information from "orderby""parameter?
Simply, I want to do the reverse process of this post