public async Task ChangeRouteStopOrdinal(RouteStop stop) { var rec = new RouteRecord { Id = stop.RecordId, Ord = stop.Ordinal }; await RouteTable.UpdateRecord(rec, RouteRecord.ORD); }
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); }