views:

15

answers:

0

Hello.. I have a service method

 <WebMethod()> _
    Public Function placeOrder(ByVal name As String, ByVal surname As String, ByVal phone As String, ByVal address As String, ByVal pid As Integer, ByVal items As Integer) As String

which places the order and assigns it an ID...

If the order fails for some reason (no availability,etc,etc) it returns a string with the reason... But in case of success how can i return the integer with the ID of the order? A solution would be a class having a property ID and Status but i think that this isnt a good solution... Any other idea?