public NRestResult <List <LanePayment> > GetPaymentsByDate(
                Search.Lanes.Payments.ByDate value)
            {
                NRestResult <List <LanePayment> > ret;
                NRestClient client = NRestClient.CreateLocalClient();

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

                if (null != value)
                {
                    ret = client.Execute <List <LanePayment> >(
                        RouteConsts.Lane.GetPaymentsByDate.Url, value);
                }
                else
                {
                    ret = new NRestResult <List <LanePayment> >();
                    ret.ParameterIsNull();
                }
                return(ret);
            }
Esempio n. 2
0
 public List <LanePayment> GetPaymentsByDate([FromBody] Search.Lanes.Payments.ByDate value)
 {
     if (null == value)
     {
         return(new List <LanePayment>());
     }
     return(LanePayment.Search(value.Date));
 }
Esempio n. 3
0
            public List <LanePayment> GetPaymentsByDate(
                Search.Lanes.Payments.ByDate value)
            {
                var ret = NRestClient.Create(port: 9000).Execute <List <LanePayment> >(
                    RouteConsts.Lane.GetPaymentsByDate.Url, value);

                return(ret);
            }
Esempio n. 4
0
        public NDbResult <List <LanePayment> > GetPaymentsByDate([FromBody] Search.Lanes.Payments.ByDate value)
        {
            NDbResult <List <LanePayment> > result;

            if (null == value)
            {
                result = new NDbResult <List <LanePayment> >();
                result.ParameterIsNull();
            }
            else
            {
                result = LanePayment.Search(value.Date);
            }
            return(result);
        }