Quantcast
Channel: Best practice to implement a sort property - Stack Overflow
Browsing latest articles
Browse All 2 View Live

Answer by Yared for Best practice to implement a sort property

Use the following method to achieve flexible sorting. The method requires property name and sorting direction parameters. public Func<IQueryable<T>, IOrderedQueryable<T>>...

View Article


Best practice to implement a sort property

I have an api Get method which accepts sort property as a string. What is a best solution to handle it without using switch statement? public ActionResult Index(string sortOrder) { var students = from...

View Article
Browsing latest articles
Browse All 2 View Live




<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>