[WebMethod]
public List<Stream> GetStream()
{
List<Stream> Streams = Stream.GetRange(0, 10, HttpContext.Current.User.Identity.Name);
return Streams;
}
I would like this same method to also include the following:
List<Comment> Comment = Comment.GetByStreamId(for each stream id
here of the retrieved streams above);
I would also like to return both lists as array of their objects of List so that they are consumed with jQuery ajax.
How can I achieve that and handle them with jQuery after json is returned.
Suggestions? Thanks