public NRestResult <TSBExchangeTransaction> GetTSBExchangeTransaction(
                Search.Exchanges.Transactions.Filter value)
            {
                NRestResult <TSBExchangeTransaction> ret;
                NRestClient client = NRestClient.CreateLocalClient();

                if (null == client)
                {
                    ret = new NRestResult <TSBExchangeTransaction>();
                    ret.RestInvalidConfig();
                    return(ret);
                }

                if (null != value)
                {
                    ret = client.Execute <TSBExchangeTransaction>(
                        RouteConsts.Exchange.GetTSBExchangeTransaction.Url, value);
                }
                else
                {
                    ret = new NRestResult <TSBExchangeTransaction>();
                    ret.ParameterIsNull();
                    ret.data = null;
                }
                return(ret);
            }
Exemplo n.º 2
0
        public NDbResult <List <TSBExchangeTransaction> > GetTSBExchangeTransactions(
            [FromBody] Search.Exchanges.Transactions.Filter value)
        {
            NDbResult <List <TSBExchangeTransaction> > result;

            if (null == value)
            {
                result = new NDbResult <List <TSBExchangeTransaction> >();
                result.ParameterIsNull();
            }
            else
            {
                result = TSBExchangeTransaction.GetTransactions(value.TSB, value.GroupId);
            }
            return(result);
        }