public NRestResult <List <LanePayment> > GetPaymentsByLane( Search.Lanes.Attendances.ByLane 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.GetPaymentsByLane.Url, value); } else { ret = new NRestResult <List <LanePayment> >(); ret.ParameterIsNull(); } return(ret); }
public List <LaneAttendance> GetAttendancesByLane([FromBody] Search.Lanes.Attendances.ByLane value) { if (null == value) { return(new List <LaneAttendance>()); } return(LaneAttendance.Search(value.Lane)); }
public List <LanePayment> GetPaymentsByLane( Search.Lanes.Attendances.ByLane value) { var ret = NRestClient.Create(port: 9000).Execute <List <LanePayment> >( RouteConsts.Lane.GetPaymentsByLane.Url, value); return(ret); }
public NDbResult <List <LaneAttendance> > GetAttendancesByLane([FromBody] Search.Lanes.Attendances.ByLane value) { NDbResult <List <LaneAttendance> > result; if (null == value) { result = new NDbResult <List <LaneAttendance> >(); result.ParameterIsNull(); } else { result = LaneAttendance.Search(value.Lane); } return(result); }