Created
July 1, 2012 00:59
-
-
Save jdeoliveira/3026321 to your computer and use it in GitHub Desktop.
WCF retail service implementation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class WCFRetailService : IWCFRetailService | |
{ | |
public string CreateOrder(Order order) { | |
Random random = new Random(); | |
int newOrderId = random.Next(); | |
order.Id = newOrderId.ToString(); | |
// do something with the order... | |
System.Diagnostics.Debug.WriteLine("Order received: " + order.Id + "; product id: " + order.ProductId + "; quantity: " + order.Quantity); | |
return order.Id; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment