public static StoreTransaction GetById(int id) { using (StoreTransactionServiceClient client = new StoreTransactionServiceClient()) { return(new StoreTransaction(client.GetStoreTransactionById(id))); } }
public StoreTransaction() { using (StoreTransactionServiceClient client = new StoreTransactionServiceClient()) { Proxy = client.CreateStoreTransaction(); client.Close(); } }