I modified a function that returns a strongly typed Ilist of products (from a web search form) from a stored procedure.
Because of the complexity of the stored procedure I have changed it to return productcategories as well using the product results. I can get this into another strongly typed ilist but for the life of me I cannot return the two ilists.
Unfotunatley I ran out of talent, after reading hundreds of posts, It seems it's possible with linq, but I would rather not go that way as I have even less knowledge there.
Is it possible put the ilists into a collection of some sort and return them for use as ilists?
If not is there any other way? I can call the stored procedure again but its way to expensive to call twice.
'Code Behind
Dim products As List(Of Product) = Dal.SearchProducts(st)
'Dal
Public Shared Function SearchProducts(ByVal searchstr As String) As List(Of Product)
Dim ProdList As List(Of Product) = New List(Of Product)()
Dim CatList As List(Of Category) = New List(Of Category)()
......
Return Prodlist and Ilist please