예제 #1
0
 public static ProductType GetById(int id)
 {
     using (ProductTypeServiceClient client = new ProductTypeServiceClient())
     {
         return(new ProductType(client.GetProductTypeById(id)));
     }
 }
예제 #2
0
 public static ProductType GetByCode(string code)
 {
     using (ProductTypeServiceClient client = new ProductTypeServiceClient())
     {
         return(new ProductType(client.GetProductTypeByCode(code)));
     }
 }
예제 #3
0
 public ProductType()
 {
     using (ProductTypeServiceClient client = new ProductTypeServiceClient())
     {
         Proxy = client.CreateProductType();
         client.Close();
     }
 }