I am writing a learning project in ASP.NET MVC. I have a page "Books" that display a user's books and there are a few sorting and filtering options in that page like this.
Book Page
Sorting Parameters : Title, Year,Author... Filtering Parameters : Read, Unread ...
When user selects a sorting parameter like "Title", Controller sorts books by title and returns to view.Then if user selects "Read" filter I want listed books to be sorted by "Title" and filtered by "Read" parameter.
As far as I know, I must store sort and filter parameters to do this.I am not sure what is the best and easy way because of I am a bit confused about Session,HttpContext,Tempdata concepts in ASP.NET MVC. I can do this using classical ASP.NET Webforms Session way but some people says using session may introduce problems . What is the alternatives, what is best and easy way to do this?