Exposing a custom SQL query from SQL Server and using http params to filter the result

Hi,

something similar in mind?
http://www.codeproject.com/Articles/590341/Stored-Procedure-with-Sorting-Paging-and-Filtering