Пример #1
0
        public async Task ChangeRouteStopOrdinal(RouteStop stop)
        {
            var rec = new RouteRecord {
                Id  = stop.RecordId,
                Ord = stop.Ordinal
            };

            await RouteTable.UpdateRecord(rec, RouteRecord.ORD);
        }
Пример #2
0
        public async Task ChangeRouteStopStatus(RouteStop stop)
        {
            var rec = new RouteRecord {
                Id = stop.RecordId
            };

            switch (stop.Status)
            {
            case RoutеStopStatus.Enroute:
                rec.Status = RouteRecord.Enroute;
                break;

            case RoutеStopStatus.Arrived:
                rec.Status = RouteRecord.Arrived;
                break;

            case RoutеStopStatus.Departed:
                rec.Status = RouteRecord.Departed;
                break;
            }

            await RouteTable.UpdateRecord(rec, RouteRecord.STATUS);
        }