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);
            }
Ejemplo n.º 2
0
 public List <LaneAttendance> GetAttendancesByLane([FromBody] Search.Lanes.Attendances.ByLane value)
 {
     if (null == value)
     {
         return(new List <LaneAttendance>());
     }
     return(LaneAttendance.Search(value.Lane));
 }
Ejemplo n.º 3
0
            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);
            }
Ejemplo n.º 4
0
        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);
        }