public Product(Arbinada.GenieLamp.Warehouse.Services.Warehouse.ProductProxy source) { if (source == null) { throw new NullReferenceException("Source proxy object cannot be null"); } this.Proxy = source; }
public Product() { using (ProductServiceClient client = new ProductServiceClient()) { Proxy = client.CreateProduct(); client.Close(); } }