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); }
public List <LanePayment> GetPaymentsByDate([FromBody] Search.Lanes.Payments.ByDate value) { if (null == value) { return(new List <LanePayment>()); } return(LanePayment.Search(value.Date)); }
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); }
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); }