using OakLeaf.MM.Main.Collections;
[WebMethod(Description = "Returns orders for the specified customer")] public mmBindingList<OrdersEntity> GetOrdersByCustomerID(string custID) { // Instantiate the Orders business object Orders oOrder = new Orders(); // Get all orders for the specified customer return oOrder.GetOrdersByCustomerID(custID); }And in VB .NET:
Imports OakLeaf.MM.Main.Collections
<WebMethod(Description:="Returns orders for the specified customer")> _ Public Function GetOrdersByCustomerID(ByVal custID As String) As mmBindingList(Of OrdersEntity) ' Instantiate the Orders business object Dim oOrder As New Orders() ' Get all orders for the specified customer Return oOrder.GetOrdersByCustomerID(custID) End Function