async Task ExecuteSearchFlight() { Schedule flight = await CosmosScheduleDBService.SearchScheduleById(transaction.vehicleId); flight.business++; flight.economy++; flight.first++; await CosmosScheduleDBService.UpdateSchedule(flight); }
async Task ExecuteGetMaximum() { if (Sort == "Flight") { _schedule = await CosmosScheduleDBService.SearchScheduleById(ID); } else if (Sort == "Train") { _train = await CosmosTrainTableService.SearchTrainById(ID); } else { return; } }