public ProductType(Arbinada.GenieLamp.Warehouse.Services.Warehouse.ProductTypeProxy source) { if (source == null) { throw new NullReferenceException("Source proxy object cannot be null"); } this.Proxy = source; }
public ProductType() { using (ProductTypeServiceClient client = new ProductTypeServiceClient()) { Proxy = client.CreateProductType(); client.Close(); } }