Exemplo n.º 1
0
        async Task ExecuteSearchFlight()
        {
            Schedule flight = await CosmosScheduleDBService.SearchScheduleById(transaction.vehicleId);

            flight.business++;
            flight.economy++;
            flight.first++;
            await CosmosScheduleDBService.UpdateSchedule(flight);
        }
Exemplo n.º 2
0
 async Task ExecuteGetMaximum()
 {
     if (Sort == "Flight")
     {
         _schedule = await CosmosScheduleDBService.SearchScheduleById(ID);
     }
     else if (Sort == "Train")
     {
         _train = await CosmosTrainTableService.SearchTrainById(ID);
     }
     else
     {
         return;
     }
 }