In this tutorial: http://www.asp.net/web-forms/tutorials/aspnet-45/getting-started-with-aspnet-45-web-forms/display_data_items_and_details
we have FormView for details single item and method:
public IQueryable<Product> GetProduct([QueryString("productID")]int? productId) { var _db = new WingtipToys.Models.ProductContext(); IQueryable<Product> query = _db.Products; if (productId.HasValue && productId > 0) { query = query.Where(p => p.ProductID == productId); } else { query = null; } return query; } Why this method returns IQueryable<Product>? Can't we return Product? I checked ...

Go to the complete details ...