public NRestResult <LanePayment> GetCurrentPaymentsByLane( Search.Lanes.Current.PaymentByLane value) { NRestResult <LanePayment> ret; NRestClient client = NRestClient.CreateLocalClient(); if (null == client) { ret = new NRestResult <LanePayment>(); ret.RestInvalidConfig(); return(ret); } if (null != value) { ret = client.Execute <LanePayment>( RouteConsts.Lane.GetCurrentPaymentsByLane.Url, value); } else { ret = new NRestResult <LanePayment>(); ret.ParameterIsNull(); } return(ret); }
public LanePayment GetCurrentPaymentsByLane([FromBody] Search.Lanes.Current.PaymentByLane value) { if (null == value) { return(null); } return(LanePayment.GetCurrentByLane(value.Lane)); }
public LanePayment GetCurrentPaymentsByLane( Search.Lanes.Current.PaymentByLane value) { var ret = NRestClient.Create(port: 9000).Execute <LanePayment>( RouteConsts.Lane.GetCurrentPaymentsByLane.Url, value); return(ret); }
public NDbResult <LanePayment> GetCurrentPaymentsByLane([FromBody] Search.Lanes.Current.PaymentByLane value) { NDbResult <LanePayment> result; if (null == value) { result = new NDbResult <LanePayment>(); result.ParameterIsNull(); } else { result = LanePayment.GetCurrentByLane(value.Lane); } return(result); }