public static ProductType GetById(int id) { using (ProductTypeServiceClient client = new ProductTypeServiceClient()) { return(new ProductType(client.GetProductTypeById(id))); } }